This Proof of Concept (PoC) demonstrates how data can be collected from a system and exfiltrated using the GitHub API. The code simulates a data stealer by gathering system information (e.g., hostname, OS version, network details) and sending it as a comment to a GitHub issue or as a file in a repository using legitimate API calls.
- Collects system information using Windows API calls.
- Formats the data into a JSON payload.
- Uses the GitHub API (with a valid token) to post the data as an issue comment or repository file.
-
Create Token from settings -> https://github.com/settings/tokens
-
Create a issue on any repo need
-
Note down the issue number
-
To build:
cargo build --release
File can be found at : GITHUB_API/target/release/GITHUB_API.exe
- Cocomelonc for Basic Idea:
- API Structure to implement WinHttp in Rust:
- WinAPI Documentation