Skip to main content

Modern HTTP Security Header Analyzer with AI & OSINT support

Project description

SHCheck-NG

Modern HTTP Security Header Analyzer with AI insights, OSINT support and professional HTML reporting.


Features

  • Security header detection (modern + legacy)
  • Missing header identification
  • Cookie security analysis
  • AI contextual security analysis (Ollama / LMStudio / OpenAI-compatible APIs)
  • Optional OSINT mode via Shodan
  • Automatic Nginx / Apache header recommendations
  • Professional HTML report generation
  • Clean CLI output with rich tables

Installation

⭐ Recommended (pipx — safest)

This installs the tool globally but isolated:

brew install pipx   # macOS
pipx ensurepath
pipx install shcheck-ng

Then simply:

shcheck-ng https://example.com

Development install

Clone repo:

git clone https://github.com/logicalpeyote777/shcheck-ng.git
cd shcheck-ng

Create venv:

python3 -m venv venv
source venv/bin/activate

Install:

pip install -e .

Basic pip install (not recommended globally)

pip install .

Use pipx instead if unsure.


Configuration (.env file)

SHCheck-NG supports environment configuration via .env.

Where to place .env

Preferred locations:

  1. Directory where you run the command
project/
├── .env
└── your-scan-command
  1. Or system environment variables (recommended for production).

Example .env

AI_URL=http://localhost:1234
AI_MODEL=openai-gpt-oss-20b
SHODAN_API_KEY=your_shodan_api_key_here

Environment Variables (alternative to .env)

You can also export variables:

export AI_URL=http://localhost:1234
export AI_MODEL=llama3
export SHODAN_API_KEY=xxx

Then run normally:

shcheck-ng https://example.com

Priority order:

CLI flags > Environment variables > .env > defaults

Usage

Basic scan

shcheck-ng https://example.com

Generate HTML report

shcheck-ng https://example.com --report

Enable AI analysis

shcheck-ng https://example.com --ai

(Uses .env automatically if present.)


OSINT passive mode (Shodan)

shcheck-ng https://example.com --osint

Requires:

SHODAN_API_KEY

Output

The tool provides:

  • Header presence tables
  • Security scoring
  • AI remediation analysis
  • Suggested server configs
  • Optional HTML professional report

Scope

This tool evaluates HTTP security header posture only.

It does NOT perform:

  • penetration testing
  • vulnerability exploitation
  • application security testing

Requirements

Python 3.9+

Dependencies handled automatically.


Best Practice Recommendation

For CLI security tools:

  • Use pipx installation
  • Use environment variables for automation
  • Avoid system Python modifications

License

MIT License.


If this tool helps you:

⭐ Star the repo on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shcheck_ng-1.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shcheck_ng-1.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file shcheck_ng-1.0.0.tar.gz.

File metadata

  • Download URL: shcheck_ng-1.0.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for shcheck_ng-1.0.0.tar.gz
Algorithm Hash digest
SHA256 eea1603c661f062f17eb5e3eb80a6bad09cd08ddfd1ced315963bc1e95efda8e
MD5 bdd54ec71839c50b49f31f8ce7b7948a
BLAKE2b-256 ac227d6bc1246982ffde13d749a39ac9fbbb7a3d754fdbb42bd46c003b551aa8

See more details on using hashes here.

File details

Details for the file shcheck_ng-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: shcheck_ng-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for shcheck_ng-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d33600f844ba1646dc23284e3666681bf5234e07ed0a0168372f6fb4163c3bfb
MD5 77539ddfdf7dd92d024cbbc7ad945ae6
BLAKE2b-256 ca8316dccea994d0beb1842e0a59077cfb3bb7b57aff70f591afe62c15025ad7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page