Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ Argus Header

Fast, lightweight HTTP security header analyzer built for developers, security engineers, and penetration testers.

Python Version License

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 provides both a concise summary and a detailed verbose report for security assessments.


โœจ Features

HTTP Request Engine

  • โœ… GET & HEAD request support
  • โœ… Configurable request timeout
  • โœ… Redirect handling
  • โœ… Retry mechanism
  • โœ… Multiple URL scanning
  • โœ… Parallel scanning

Security Analysis

Detects missing security headers including:

  • Content-Security-Policy (CSP)
  • Strict-Transport-Security (HSTS)
  • X-Frame-Options
  • X-Content-Type-Options

Information Leakage Detection

Detects exposed:

  • Server
  • X-Powered-By

CORS Analysis

Detects:

  • Wildcard Access-Control-Allow-Origin: *

Performance Checks

Analyzes:

  • Cache-Control

Reports

  • Rich CLI output
  • Detailed --verbose mode
  • JSON report export
  • Severity levels
  • Security recommendations

๐Ÿ” Verbose Mode

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

๐Ÿ“ฆ Installation

Install from PyPI

pip install argus-header

Verify installation:

argus-header --version

Expected output:

Argus Header 0.6.0

Install from Source

git clone https://github.com/heyshreee/argus-header.git

cd argus-header

python -m venv .venv

Windows

.venv\Scripts\activate

Linux / macOS

source .venv/bin/activate

Install:

pip install -e .

๐Ÿš€ Usage

Basic Scan

argus-header https://example.com

HEAD Request

argus-header https://example.com --method HEAD

Verbose Report

argus-header https://example.com --verbose

Custom Timeout

argus-header https://example.com --timeout 5

Multiple URLs

argus-header https://google.com https://github.com --parallel

Disable Redirects

argus-header https://example.com --no-redirect

Export JSON

argus-header https://example.com --json report.json

Display Version

argus-header --version

Display Help

argus-header --help

โš™๏ธ Command Line Options

Option Description
--method HTTP Method (GET / HEAD)
--timeout Request timeout
--parallel Scan multiple URLs concurrently
--json FILE Save report as JSON
--no-redirect Disable redirect following
--verbose Display detailed scan report
--version Display tool version
--help Show help information

๐Ÿ“‹ Example Output

(.venv) PS C:\pr0j3t\argus-header> argus-header https://example.com --verbose         

   ___                             
  / _ | _______ _____ _____ _____  
 / __ |/ __/ _ `/ // (_-</(_-<(_-<  
/_/ |_/_/  \_, /\_,_/___/___/___/  
            /_/                    

 Argus Header
 HTTP Header Security Analyzer

Version: 0.6.0

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Scan Summary โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Target: https://example.com/ โ”‚
โ”‚ Status: 200                  โ”‚
โ”‚ Headers Found: 11            โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
                                                    Analysis Findings                                                     
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Severity     โ”ƒ Issue                            โ”ƒ Risk                              โ”ƒ Recommendation                   โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ HIGH         โ”‚ Missing Content-Security-Policy  โ”‚ XSS (Cross-Site Scripting)        โ”‚ Add a 'Content-Security-Policy'  โ”‚
โ”‚              โ”‚                                  โ”‚ attacks are easier to exploit.    โ”‚ header defining allowed content  โ”‚
โ”‚              โ”‚                                  โ”‚                                   โ”‚ sources.                         โ”‚
โ”‚ HIGH         โ”‚ Missing                          โ”‚ Susceptible to Man-in-the-Middle  โ”‚ Add 'Strict-Transport-Security:  โ”‚
โ”‚              โ”‚ Strict-Transport-Security        โ”‚ (MITM) protocol downgrade         โ”‚ max-age=63072000;                โ”‚
โ”‚              โ”‚                                  โ”‚ attacks.                          โ”‚ includeSubDomains'.              โ”‚
โ”‚ HIGH         โ”‚ Missing X-Frame-Options          โ”‚ Vulnerable to Clickjacking        โ”‚ Add 'X-Frame-Options: DENY' or   โ”‚
โ”‚              โ”‚                                  โ”‚ attacks.                          โ”‚ 'SAMEORIGIN'.                    โ”‚
โ”‚ MEDIUM       โ”‚ Missing X-Content-Type-Options   โ”‚ Browsers may MIME-sniff the       โ”‚ Add 'X-Content-Type-Options:     โ”‚
โ”‚              โ”‚                                  โ”‚ response body, leading to XSS.    โ”‚ nosniff'.                        โ”‚
โ”‚ LOW          โ”‚ Server Header Leaked: cloudflare โ”‚ Reveals server technology,        โ”‚ Configure server to suppress or  โ”‚
โ”‚              โ”‚                                  โ”‚ helping attackers verify CVEs.    โ”‚ obfuscate the 'Server' header.   โ”‚
โ”‚ LOW          โ”‚ Missing Cache-Control Header     โ”‚ Browser may not cache resources   โ”‚ Add 'Cache-Control' header       โ”‚
โ”‚              โ”‚                                  โ”‚ efficiently, slowing load times.  โ”‚ (e.g., max-age=3600).            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜


๐Ÿ” Security Analysis

Security Headers

Checks for:

  • Content-Security-Policy
  • Strict-Transport-Security
  • X-Frame-Options
  • X-Content-Type-Options

Information Leakage

Checks for:

  • Server
  • X-Powered-By

CORS

Checks for:

  • Wildcard Access-Control-Allow-Origin

Performance

Checks for:

  • Cache-Control

๐Ÿ“ Project Structure

argus-header/

src/
โ””โ”€โ”€ argus_header/
    โ”œโ”€โ”€ __init__.py
    โ”œโ”€โ”€ __main__.py
    โ”œโ”€โ”€ analyzer.py
    โ”œโ”€โ”€ cli.py
    โ”œโ”€โ”€ reporter.py
    โ”œโ”€โ”€ requester.py
    โ”œโ”€โ”€ utils.py
    โ””โ”€โ”€ verbose.py

tests/

README.md
CHANGELOG.md
CONTRIBUTING.md
LICENSE
pyproject.toml

๐Ÿ—บ๏ธ Roadmap

โœ… v0.6.0 โ€” Current Release

Added

  • Comprehensive --verbose reporting
  • 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

๐Ÿš€ v0.7.0

Planned features:

  • Security Score (0โ€“100)
  • Grade (Aโ€“F)
  • Cookie Analysis
  • HTML Report Export
  • Markdown Report Export
  • Enhanced JSON Reports

๐Ÿš€ v0.8.0

Planned features:

  • Unit Tests
  • GitHub Actions
  • Documentation Improvements
  • Architecture Improvements

๐Ÿš€ v0.9.0

Planned features:

  • TLS Inspection
  • Certificate Analysis
  • HTTP/2 Detection
  • Advanced CORS Analysis

๐ŸŽ‰ v1.0.0

  • Stable Public Release
  • Production-ready Documentation
  • Comprehensive Testing
  • Complete HTTP Security Analysis

๐Ÿ’ป Development

Clone the repository:

git clone https://github.com/heyshreee/argus-header.git

cd argus-header

Install the development version:

python -m venv .venv

# Windows
.venv\Scripts\activate

pip install -e .

Run:

argus-header https://example.com

Run verbose mode:

argus-header https://example.com --verbose

๐Ÿค Contributing

Contributions are welcome.

  1. Fork the repository.

  2. Create a feature branch.

git checkout -b feature/my-feature
  1. Commit your changes.
git commit -m "feat: add awesome feature"
  1. Push your branch.
git push origin feature/my-feature
  1. Open a Pull Request.

Please read CONTRIBUTING.md before submitting major changes.


๐Ÿ“„ License

Released under the MIT License.

See the LICENSE file for details.


๐Ÿ‘จโ€๐Ÿ’ป Author

Sriram

GitHub: https://github.com/heyshreee

PyPI: https://pypi.org/project/argus-header/


โš ๏ธ Disclaimer

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.