Skip to content

Commit 784f416

Browse files
committed
Ghosting Process
ProcessGhosting implemented in Rust with Better Err Handeling with Detailed logging.
1 parent 222eedf commit 784f416

File tree

5 files changed

+644
-1
lines changed

5 files changed

+644
-1
lines changed

GhostingProcess/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "GhostingProcess"
3+
version = "0.1.0"
4+
edition = "2021"
5+
authors = ["5mukx", "[email protected]"]
6+
repository = "https://github.com/Whitecat18/Rust-for-Malware-Development"
7+
keywords = ["process-ghosting", "windows", "security", "research", "malware-development"]
8+
categories = ["development-tools", "os", "security"]
9+
license = "MIT"
10+
readme = "README.md"
11+
12+
[dependencies]
13+
winapi = { version = "0.3.9", features = ["winuser", "fileapi", "errhandlingapi", "winbase", "memoryapi", "processenv", "userenv"] }
14+
ntapi = { version = "0.4.0" }

GhostingProcess/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## ProcessGhosting in Rust
2+
3+
Process ghosting is an advanced technique used in Windows systems to create a new process in a way that hides or manipulates its presence from typical security tools or monitoring mechanisms. Imagine you’re playing a game of hide-and-seek with a computer’s security system. Normally, when a program (or process) starts, it creates a file on the disk, loads it into memory, and runs it, leaving traces that security software can easily detect. Process ghosting, however, tricks the system by using a special method: it creates a temporary file, marks it for deletion (so it’s not easily visible), writes the program’s code into this file, and then maps it directly into memory as a section without leaving a permanent file on the disk. This new process is then launched from this in-memory section, making it look like a "ghost" because it doesn’t have a clear file origin that traditional antivirus or monitoring tools can trace.
4+
5+
### POC Image..
6+
7+
![Ghost Process](./image.png)
8+
9+
## Credits and Reference
10+
11+
* https://github.com/hasherezade/process_ghosting.git

GhostingProcess/image.png

164 KB
Loading

0 commit comments

Comments
 (0)