CustomAgent.app
Hook
compliance
✓ Verified
NEW
Free

Governance Audit

Audit user prompts for prompt injection, exfiltration attempts, and policy violations across the session.

4.7(64 reviews)
24,600 installs
by GitHub

About

Runs on session start, every prompt submission, and session end. Scores prompts against 5 threat categories (data exfiltration, privilege escalation, system destruction, prompt injection, credential exposure) and either logs or blocks based on configured governance level (open/standard/strict/locked).

Tags

governanceauditcompliancepolicy

Hook Configuration (hooks.json)

{
  "hooks": [
    { "event": "sessionStart", "command": ".github/hooks/governance-audit/audit-session-start.sh" },
    { "event": "promptSubmit",  "command": ".github/hooks/governance-audit/audit-prompt.sh" },
    { "event": "sessionEnd",    "command": ".github/hooks/governance-audit/audit-session-end.sh" }
  ],
  "env": {
    "GOVERNANCE_LEVEL": "standard",
    "BLOCK_ON_THREAT": "false"
  }
}
Triggers:sessionStartpromptSubmitsessionEndmode: warn

Related Hooks

Hook
security
FREE

Tool Guardian

Intercepts dangerous tool operations (rm -rf, force pushes, DROP DATABASE) before the AI executes them.

safetyguarddestructive
G
GitHub
4.9(203)
68k
4.5k
Hook
compliance
FREE

Dependency License Checker

Block dependency installs that introduce GPL, AGPL, or other restrictive licenses incompatible with your policy.

licensescompliancedependencies
C
Community
4.6(41)
18k
980
Hook
audit
FREE

Session Logger

Log every prompt, tool call, and result during AI sessions for audit trail and reproducibility.

loggingaudittelemetry
C
Community
4.5(56)
23k
1.3k
Install
# Install hook into your project:
mkdir -p .github/hooks/governance-audit
curl -fsSL "https://raw.githubusercontent.com/github/awesome-copilot/main/hooks/governance-audit/hooks.json" \
  -o .github/hooks/governance-audit/hooks.json
G

GitHub

@github

View on GitHub