ironwall

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 2 Imported by: 0

README ΒΆ

πŸ” Ironwall β€” 7-Step Security Audit CLI

Go Version License Version

Open-source security audit CLI. 7-step pipeline. AI-assisted analysis. Your code never leaves your machine.

⚠️ Phase 1 (v0.1.0): Step 1 (gitleaks) is functional. Steps 2-7 are under active development.

🎯 What It Does

Ironwall scans your codebase through a 7-step security audit pipeline:

Step Name Tool What It Finds
1 πŸ”‘ Secret Scanning gitleaks API keys, tokens, passwords in code
2 πŸ”¬ SAST Analysis semgrep + AI SQL injection, XSS, command injection
3 πŸ”— Endpoint Audit AI Auth bypass, IDOR, missing access control
4 πŸ” Hardcoded Secrets AI Patterns gitleaks missed
5 πŸ“¦ Dependency CVE go/npm/pip Known vulnerabilities in dependencies
6 πŸ–₯️ Server Config AI Nginx, Docker, env misconfigurations
7 πŸ—„οΈ Database Audit AI Migration risks, SQL anti-patterns

Key principle: All scanning happens locally. AI analysis optionally sends code snippets (not your entire repo) to the API using your own key.

πŸ“¦ Installation

go install github.com/FYFran/ironwall/cmd/ironwall@latest

Or build from source:

git clone https://github.com/FYFran/ironwall.git
cd ironwall
make build

Requirements:

  • Go 1.22+
  • gitleaks (go install github.com/gitleaks/gitleaks/v8@latest)

πŸš€ Quick Start

# Scan current directory (terminal output)
ironwall scan .

# Quick scan β€” only secrets + hardcoded patterns (< 30s)
ironwall quick .

# Generate markdown report
ironwall scan . --format markdown

# Generate JSON report (for CI pipelines)
ironwall scan . --format json --output report.json

# Enable AI-assisted analysis
export DEEPSEEK_API_KEY="sk-..."
ironwall scan . --ai

πŸ“Š Example Output

πŸ” ironwall v0.1.0 β€” 7-Step Security Audit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Target:    ./my-app
Duration:  2.3s

  πŸ”‘ Secret scanning (gitleaks) .................... 2 found
  πŸ”¬ SAST (semgrep + AI) ............................ 5 found
  ...

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
πŸ“Š SUMMARY
  πŸ”΄ CRITICAL: 1   🟠 HIGH: 5   🟑 MEDIUM: 5   🟒 LOW: 3
  πŸ“„ Full report: ./ironwall-report-my-app.md
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

πŸ”§ Configuration

Flag Default Description
--format terminal Output format: terminal, markdown, json
--output, -o auto Output file path
--quick false Only run fast steps (1+4)
--ai false Enable AI-assisted analysis
--ai-model deepseek-chat Model name (also supports OpenAI, Claude)
--timeout 300 Max scan time in seconds
--verbose, -v false Verbose output

Environment variables:

  • IRONWALL_AI_KEY or DEEPSEEK_API_KEY β€” Your AI API key
  • IRONWALL_AI_ENDPOINT β€” Custom API endpoint (default: DeepSeek)

πŸ—οΈ Architecture

ironwall CLI
  β”œβ”€β”€ Pipeline Engine (sequential step execution)
  β”œβ”€β”€ AI Engine (DeepSeek API β€” optional)
  β”œβ”€β”€ Reporter Engine (terminal / markdown / JSON)
  └── External Tools (gitleaks, semgrep, nuclei, ...)

All external tools run as subprocesses on the user's machine. The AI engine uses the OpenAI-compatible API interface β€” works with DeepSeek, OpenAI, Claude, or local Ollama.

πŸ“– Methodology

Ironwall follows a 7-step gated pipeline inspired by professional security audit workflows:

  1. Gated execution β€” Step 1 (gitleaks) is TIER1. If it fails, the scan aborts.
  2. Attack scenario verification β€” Every AI-generated finding must pass three questions:
    • Q1: What role/conditions does the attacker need?
    • Q2: What is the concrete attack path?
    • Q3: What does the attacker gain?
    • If all three have specific, concrete answers β†’ real vulnerability. Otherwise β†’ filtered.
  3. Gotchas library β€” Curated patterns that static analyzers typically miss.

Read the full methodology: docs/methodology.md

πŸ†š Comparison

strix PentestMate Ironwall
Mode Open-source CLI Closed SaaS Open-source CLI
Price Free $59/mo Free (MIT)
Method Multi-agent pentest Scan-focused 7-step gated + gotchas
False positives PoC-verified Low Three-question attack verification

πŸ—ΊοΈ Roadmap

  • v0.1.0 β€” Step 1: Secret scanning (gitleaks)
  • v0.2.0 β€” Steps 2+4: SAST + Hardcoded secrets with AI
  • v0.3.0 β€” Steps 5+6+7: Dependencies + Server + Database
  • v0.4.0 β€” CI integration (GitHub Actions, SARIF output)
  • v1.0.0 β€” Full 7-step pipeline, stable API

🀝 Contributing

Contributions welcome! Especially:

  • Gotchas β€” Patterns your tools missed. Add to docs/gotchas.md.
  • Test data β€” Vulnerable code samples for testdata/.
  • Language support β€” Scanner modules for new languages.

See CONTRIBUTING.md (coming soon).

πŸ“„ License

MIT Β© 2026 FYFran


Built by @FYFran β€” CS freshman at Taizhou University. Learning security by building tools.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
cmd
ironwall command
internal
ai

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL