Enkryptify Agent watches local AI conversation/session artifacts, scans changes with Gitleaks and sends Slack alerts when potential secrets are detected.
It is designed for local developer machines and works continuously until you stop it.
- Git
- Bun runtime (required to execute this project)
- Gitleaks (required)
- Slack Incoming Webhook (recommended; otherwise findings are logged locally)
- Enkryptify Secrets Manager access (to provide
SLACK_WEBHOOK_URL)
git clone https://github.com/Enkryptify/enkryptify-agent.git
cd enkryptify-agentBun is the runtime for this repository. You can use different process managers to run it, but execution is through Bun.
Official install docs: bun.sh/docs/installation
Common install options:
- macOS / Linux:
curl -fsSL https://bun.sh/install | bash- Windows (PowerShell):
powershell -c "irm bun.sh/install.ps1 | iex"Verify:
bun --versionbun installOfficial project: github.com/gitleaks/gitleaks
Install options and binaries: github.com/gitleaks/gitleaks/releases
- macOS (Homebrew):
brew install gitleaks- Linux (binary release):
- Download the correct
linux_*archive from the releases page. - Extract it and move
gitleaksto a location onPATH, for example:
chmod +x gitleaks
sudo mv gitleaks /usr/local/bin/gitleaks- Windows (choose one):
winget install Gitleaks.Gitleakschoco install gitleaksscoop install gitleaks- Or download the Windows binary from the releases page.
Verify:
gitleaks versionSlack docs:
- Incoming webhooks overview: api.slack.com/messaging/webhooks
- Create a Slack app: api.slack.com/apps
Step-by-step:
- Open api.slack.com/apps and click Create New App.
- Choose From scratch.
- Enter an app name (for example
Enkryptify Agent Alerts). - Select the Slack workspace where alerts should be posted.
- In the app settings, open Incoming Webhooks.
- Toggle Activate Incoming Webhooks to On.
- Click Add New Webhook to Workspace.
- Select the destination channel (for example
#security-alerts) and authorize. - Copy the generated webhook URL. It should look like:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
- Create a free account on https://app.enkryptify.com
- Create a project and add your
SLACK_WEBHOOK_URLsecret. - Follow the getting started steps
- Foreground run: press
Ctrl+C - Background process stop:
- macOS / Linux:
pkill -f "bun run index.ts"- Windows (PowerShell):
Get-Process bun | Stop-Process -ForceIf SLACK_WEBHOOK_URL is not available, the agent still runs and prints findings to stdout.
No Slack message is sent in that mode.
Error: gitleaks is not installed or not in PATH- Install Gitleaks and re-run
gitleaks version.
- Install Gitleaks and re-run
- No Slack alerts are arriving
- Verify webhook URL is correct and active.
- Send the curl smoke test payload above.
- Ensure
SLACK_WEBHOOK_URLis present in runtime environment.
- Nothing is detected
- Confirm the relevant tool directories exist on your machine.
- Confirm file changes are happening under watched paths.
- Treat the Slack webhook URL as a secret.
- Prefer Enkryptify Secrets Manager (or equivalent secret injection) over local plaintext
.env.