initial project structure
This commit is contained in:
31
.gitignore
vendored
Normal file
31
.gitignore
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Rust
|
||||||
|
target/
|
||||||
|
**/*.rs.bk
|
||||||
|
*.pdb
|
||||||
|
Cargo.lock
|
||||||
|
|
||||||
|
# OS
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
|
||||||
|
# Build artifacts
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
*.sys
|
||||||
|
|
||||||
|
# Test outputs
|
||||||
|
/test-results/
|
||||||
|
/bench/results/
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Local config
|
||||||
|
.env
|
||||||
|
config.local.toml
|
||||||
17
Cargo.toml
Normal file
17
Cargo.toml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
[workspace]
|
||||||
|
members = [
|
||||||
|
"ghost-core",
|
||||||
|
]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
authors = ["Ghost Team"]
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
|
[workspace.dependencies]
|
||||||
|
anyhow = "1.0"
|
||||||
|
thiserror = "1.0"
|
||||||
|
log = "0.4"
|
||||||
|
env_logger = "0.11"
|
||||||
46
README.md
Normal file
46
README.md
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# Ghost
|
||||||
|
|
||||||
|
Cross-platform process injection detection framework.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
Ghost is a real-time detection system for identifying process injection techniques across Windows, Linux, and macOS platforms. It combines kernel-level monitoring with behavioral analysis to detect advanced injection methods.
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- **ghost-core**: Core detection engine and platform abstraction
|
||||||
|
- **ghost-drivers**: Platform-specific kernel components
|
||||||
|
- **ghost-tui**: Terminal user interface
|
||||||
|
- **ghost-lib**: Shared libraries and utilities
|
||||||
|
- **ghost-rules**: Detection rules and signatures
|
||||||
|
|
||||||
|
## Supported Techniques
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
- Classic DLL injection (CreateRemoteThread)
|
||||||
|
- APC injection (NtQueueApcThread)
|
||||||
|
- Process hollowing
|
||||||
|
- Thread hijacking
|
||||||
|
- SetWindowsHookEx injection
|
||||||
|
- Reflective DLL injection
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
- ptrace injection
|
||||||
|
- LD_PRELOAD manipulation
|
||||||
|
- process_vm_writev injection
|
||||||
|
- Shared memory injection
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
- DYLD_INSERT_LIBRARIES
|
||||||
|
- task_for_pid injection
|
||||||
|
- Mach port manipulation
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
## Status
|
||||||
|
|
||||||
|
Early development. Windows support in progress.
|
||||||
Reference in New Issue
Block a user