Add penetration testing authorization & verification system#68
Merged
Add penetration testing authorization & verification system#68
Conversation
Adds a fillable verification.env config and verification.md template that
renders into an active authorization document (.claude/verification-active.md).
This provides the explicit written authorization Claude Code requires before
executing offensive security operations from prompt templates.
- verification.env: user-fillable engagement config (scope, targets, permissions)
- blhackbox/prompts/verification.md: authorization template with {{PLACEHOLDER}} tokens
- blhackbox/prompts/inject_verification.py: renders env values into active document
- Session-start hook auto-injects verification on Claude Code Web startup
- MCP get_template appends active verification as authorization context
- make inject-verification target for manual activation
https://claude.ai/code/session_01LurM5TE5bwMrPQsiXWgHSp
Document the full verification document workflow: how to fill in verification.env, activate it, inject it, and how it integrates with pentest templates and the session-start hook. Includes step-by-step setup, validation rules, file reference table, and a self-authorized lab testing example. Updates Project Structure, Makefile Shortcuts, Security Notes, and Installation sections. https://claude.ai/code/session_01LurM5TE5bwMrPQsiXWgHSp
- UP017: Replace `timezone.utc` with `datetime.UTC` alias - E501: Break long f-string lines under 100 chars https://claude.ai/code/session_01LurM5TE5bwMrPQsiXWgHSp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a comprehensive authorization and verification system for blhackbox that requires explicit written permission before executing any penetration testing activities. Users must fill in engagement details, scope, and authorized activities in a configuration file, which is then rendered into an active verification document that Claude Code loads as authorization context.
Key Changes
New verification injection system (
blhackbox/prompts/inject_verification.py):verification.envconfiguration file with engagement detailsverification.mdtemplate by substituting{{PLACEHOLDER}}tokens.claude/verification-active.md(git-ignored)Verification document template (
blhackbox/prompts/verification.md):Configuration template (
verification.env):AUTHORIZATION_STATUS) must be set toACTIVEto enable testingMCP server integration (
blhackbox/mcp/server.py):_do_get_template()to automatically append active verification documentload_verification()helper functionPrompt utilities (
blhackbox/prompts/__init__.py):load_verification()function to read rendered active documentSession automation (
.claude/hooks/session-start.sh):inject-verificationon Claude Code session start ifverification.envexistsBuild system (
Makefile):make inject-verificationtarget to render verification documentDocumentation:
Git configuration (
.gitignore):.claude/verification-active.mdto prevent committing engagement detailsImplementation Details
{{KEY}}patternshttps://claude.ai/code/session_01LurM5TE5bwMrPQsiXWgHSp