Fast, lightweight HTTP security header analyzer built for developers, security engineers, and penetration testers.
Argus Header is a command-line tool that analyzes HTTP response headers and identifies common security misconfigurations, information leakage, and HTTP security best-practice issues. It scores each target from 0โ100 with a letter grade and exports reports as JSON, Markdown, or HTML.
- โ GET & HEAD request support
- โ Configurable request timeout
- โ Redirect handling
- โ Retry mechanism
- โ Multiple URL scanning
- โ Parallel scanning
Detects missing security headers including:
- Content-Security-Policy (CSP)
- Strict-Transport-Security (HSTS)
- X-Frame-Options
- X-Content-Type-Options
- Security Score from 0โ100
- Letter Grade from AโF
- Risk level and penalty breakdown
- Stable rule IDs for every finding (e.g.
SEC-001,COOKIE-002)
Analyzes Set-Cookie attributes:
- Secure flag (MEDIUM)
- HttpOnly flag (MEDIUM)
- SameSite attribute (LOW)
Detects exposed:
- Server
- X-Powered-By
Detects:
- Wildcard
Access-Control-Allow-Origin: *
Analyzes:
- Cache-Control
- Rich CLI output
- Detailed
--verbosemode - JSON report export (enhanced v0.7 schema)
- Markdown report export
- HTML report export (self-contained, escaped)
- Severity levels
- Security recommendations
The --verbose option provides a comprehensive scan report including:
- Scan Information
- Target Information
- Request Configuration
- Connection Information
- HTTP Response Details
- Redirect Information
- Response Headers
- Security Headers
- Missing Security Headers
- Present Security Headers
- Information Leakage
- Response Statistics
- Findings Summary
- Overall Assessment
- End of Scan Summary
pip install argus-headerVerify installation:
argus-header --versionExpected output:
Argus Header 0.7.0
git clone https://github.com/heyshreee/argus-header.git
cd argus-header
python -m venv .venv.venv\Scripts\activatesource .venv/bin/activateInstall:
pip install -e .Basic Scan
argus-header https://example.comHEAD Request
argus-header https://example.com --method HEADVerbose Report
argus-header https://example.com --verboseCustom Timeout
argus-header https://example.com --timeout 5Multiple URLs
argus-header https://google.com https://github.com --parallelDisable Redirects
argus-header https://example.com --no-redirectExport JSON
argus-header https://example.com --json report.jsonSecurity Score & Grade
argus-header https://example.com --scoreExport Markdown Report
argus-header https://example.com --markdown report.mdExport HTML Report
argus-header https://example.com --html report.htmlAll Export Formats Together
argus-header https://example.com \
--score \
--json report.json \
--markdown report.md \
--html report.htmlDisplay Version
argus-header --versionDisplay Help
argus-header --help| Option | Description |
|---|---|
--method |
HTTP Method (GET / HEAD) |
--timeout |
Request timeout |
--parallel |
Scan multiple URLs concurrently |
--json FILE |
Save report as JSON (v0.7 enhanced schema) |
--score |
Display the security score and grade |
--markdown FILE |
Save a Markdown security report |
--html FILE |
Save an HTML security report |
--no-redirect |
Disable redirect following |
--verbose |
Display detailed scan report |
--version |
Display tool version |
--help |
Show help information |
$ argus-header https://example.com --score
___
/ _ | _______ _____ _____ _____
/ __ |/ __/ _ `/ // (_-</(_-<(_-<
/_/ |_/_/ \_, /\_,_/___/___/___/
/_/
Argus Header
HTTP Header Security Analyzer
Version: 0.7.0
โญโโโโโโโโ Scan Summary โโโโโโโโโฎ
โ Target: https://example.com/ โ
โ Status: 200 โ
โ Headers Found: 11 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Analysis Findings
โโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Severity โ Issue โ Risk โ Recommendation โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ HIGH โ Missing โ XSS (Cross-Site โ Add a โ
โ โ Content-Security-Policy โ Scripting) attacks are โ 'Content-Security-Policy' โ
โ โ โ easier to exploit. โ header defining allowed โ
โ โ โ โ content sources. โ
โ HIGH โ Missing โ Susceptible to โ Add โ
โ โ Strict-Transport-Security โ Man-in-the-Middle (MITM) โ 'Strict-Transport-Securiโฆ โ
โ โ โ protocol downgrade โ max-age=63072000; โ
โ โ โ attacks. โ includeSubDomains'. โ
โ HIGH โ Missing X-Frame-Options โ Vulnerable to โ Add 'X-Frame-Options: โ
โ โ โ Clickjacking attacks. โ DENY' or 'SAMEORIGIN'. โ
โ MEDIUM โ Missing โ Browsers may MIME-sniff โ Add โ
โ โ X-Content-Type-Options โ the response body, โ 'X-Content-Type-Options: โ
โ โ โ leading to XSS. โ nosniff'. โ
โ LOW โ Server Header Leaked: โ Reveals server โ Configure server to โ
โ โ cloudflare โ technology, helping โ suppress or obfuscate the โ
โ โ โ attackers verify CVEs. โ 'Server' header. โ
โ LOW โ Missing Cache-Control โ Browser may not cache โ Add 'Cache-Control' โ
โ โ Header โ resources efficiently, โ header (e.g., โ
โ โ โ slowing load times. โ max-age=3600). โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Tip: Run with --verbose to view detailed scan information.
โญโ Security Score โโฎ
โ Score: 27/100 โ
โ Grade: F โ
โ Risk: HIGH โ
โ Penalty: 73 โ
โฐโโโโโโโโโโโโโโโโโโโฏ
Checks for:
- Content-Security-Policy
- Strict-Transport-Security
- X-Frame-Options
- X-Content-Type-Options
Checks for:
- Server
- X-Powered-By
Checks for:
- Wildcard Access-Control-Allow-Origin
Checks for:
- Cache-Control
argus-header/
src/
โโโ argus_header/
โโโ __init__.py
โโโ __main__.py
โโโ analyzer.py # rule engine with stable rule IDs
โโโ cookies.py # Set-Cookie attribute analysis
โโโ scorer.py # security score / grade engine
โโโ cli.py # argument parsing & orchestration
โโโ reporter.py # terminal output + canonical report + JSON export
โโโ markdown.py # Markdown report renderer
โโโ html_report.py # HTML report renderer
โโโ requester.py # HTTP fetch engine (retries, redirects)
โโโ schemas.py # Pydantic models for the API layer
โโโ utils.py # URL normalization
โโโ verbose.py # 15-section detailed report
api.py # FastAPI service (GET/POST /analyze)
frontend/ # vanilla JS dashboard with score panel & exports
tests/
docs/
README.md
CHANGELOG.md
CONTRIBUTING.md
LICENSE
pyproject.toml
- Security Score (0โ100) and Grade (AโF)
- Risk level and penalty breakdown
- Cookie analysis: Secure, HttpOnly, SameSite
- Stable rule IDs for findings
- Enhanced JSON reports with scan metadata
- Markdown report export (
--markdown) - HTML report export (
--html) - CLI
--scoreoption - API score/grade/summary exposure
- Dashboard score panel and finding summaries
Planned features:
- Expanded unit test coverage (CLI / verbose rendering)
- GitHub Actions CI
- Documentation improvements
- Architecture improvements
Planned features:
- TLS Inspection
- Certificate Analysis
- HTTP/2 Detection
- Advanced CORS Analysis
- Stable Public Release
- Production-ready Documentation
- Comprehensive Testing
- Complete HTTP Security Analysis
Clone the repository:
git clone https://github.com/heyshreee/argus-header.git
cd argus-headerInstall the development version:
python -m venv .venv
# Windows
.venv\Scripts\activate
# Linux / macOS
source .venv/bin/activate
pip install -e .
pip install -r requirements-dev.txtRun:
argus-header https://example.comRun verbose mode:
argus-header https://example.com --verboseRun the test suite and static checks:
pytest tests/ -v
ruff check src/ tests/
black --check src/ tests/
mypy src/Contributions are welcome.
-
Fork the repository.
-
Create a feature branch.
git checkout -b feature/my-feature- Commit your changes.
git commit -m "feat: add awesome feature"- Push your branch.
git push origin feature/my-feature- Open a Pull Request.
Please read CONTRIBUTING.md before submitting major changes.
Released under the MIT License.
See the LICENSE file for details.
Sriram
GitHub: https://github.com/heyshreee
PyPI: https://pypi.org/project/argus-header/
Argus Header is intended for defensive security, security auditing, learning, and authorized penetration testing only.
Only scan systems that you own or have explicit permission to assess.
The author is not responsible for misuse of this software.