Vault Hound is an autonomous DevSecOps and Secret Scanner system that monitors personal or corporate GitHub accounts in near real-time. Developed with a focus on high performance using Rust, it is built upon modern "Shift-Left" security principles.
Traditional security tools require integration into the CI/CD pipeline of every single project. The Account Watchman Model operates on a "Centralized SOC (Security Operations Center)" philosophy.
Hosted in a single central repository via GitHub Actions, the Watchman agent uses the GitHub API to monitor all repositories associated with your account.
When a code update (Push) is detected anywhere in your account:
- It runs on an isolated GitHub Actions virtual machine.
- It fetches the updated repository's source code directly into the runner's RAM (Memory) without writing to disk.
- It performs rapid scanning using a dynamic library of 40+ enterprise-grade signatures (
rules.json). - If a leak is detected, it autonomously opens a "Critical Security Alert (Issue)" directly in the target repository.
- Full Autonomy: Patrols 24/7 via GitHub Actions Cron Jobs. Requires zero human intervention.
- Dynamic Rule Engine: Add new API signatures instantly via
rules.jsonwithout recompiling the Rust binary. - Noise Reduction: Automatically skips
.git,target, compiled binaries, and media files to prevent False Positives. - Broad Signature Library: Recognizes 40+ key formats including Cloud Providers (AWS, GCP), AI APIs (OpenAI, Anthropic), payment gateways (Stripe), and communication tools (Slack, Discord, Telegram).
To deploy Vault Hound as an autonomous security shield, you need to generate a GitHub Token and grant it to this repository's GitHub Actions.
The system needs an authorization key to monitor your account and open Issues on your behalf.
- Go to your GitHub profile and navigate to Settings > Developer settings > Personal access tokens (classic).
- Click Generate new token (classic).
- Name it
Vault Hound Watchman. - Check only the
reposcope (Full control of private repositories) and generate the token. - Copy the generated
ghp_...key. Make sure to save it, as you won't see it again!
Now, we need to give this key to Vault Hound's Actions pipeline.
- Go to the repository where you hosted Vault Hound (e.g.,
Vault-Hound). - Click on the Settings tab at the top.
- From the left sidebar, navigate to Secrets and variables > Actions.
- Click the green New repository secret button.
- In the Name field, type exactly:
WATCHMAN_TOKEN - In the Secret field, paste the
ghp_...key you created in Step 1. - Click Add secret.
Once the code and the secret are in place, the .github/workflows/watchman.yml file will automatically trigger. The system will start scanning your account every 5 minutes. You can also trigger it manually using the Run workflow button in the GitHub Actions tab.
If you want to add a new secret scanning rule, simply add a new JSON object to the rules.json file in the root directory:
{
"name": "Example Service API Key",
"pattern": "service_prefix_[a-zA-Z0-9]{32}"
}This tool is a preventative system designed to run entirely on GitHub's secure infrastructure. Source code fetched during the scan is held entirely in the memory (RAM) of the ephemeral GitHub Actions runner. It is never written to a hard drive or transferred to third-party servers. Once the GitHub Action job is completed, the runner and its memory are permanently destroyed.
Developed with Rust for modern DevSecOps standards.
