Skip to main content

HARIS
Black-box web security audit framework. Scan, correlate, prioritise, remediate.

License Python OWASP

Scan only systems you are authorised to test. See LEGAL_NOTICE.md.

Orchestrates security scanners, correlates findings, and writes one prioritised report. LLM analysis is optional.

  • Correlation. Findings that share a fingerprint become one finding. The score combines the scanners that reported it.
  • Cross-scanner context. Built-in checks and nmap fill a ScanContext. Later scanners read it. Nuclei derives its tag group from detected technologies.
  • Business risk and remediation. Plain-language impact sits next to the technical finding. Fixes are grouped and ordered by impact and effort.
  • OWASP Top 10 (2025). Findings are mapped, including Software Supply Chain Failures and Mishandling of Exceptional Conditions.
  • Verification. Replay oracles, an optional LLM verdict, and an opt-in agent. A refuted finding stays in the report. See docs/verification.md.
  • Profiles, templates, LLM. Six profiles. Scan templates are named presets with per-scanner overrides, stored and reused from the web UI. LLM analysis covers Q&A, Jira text, test cases and enrichment, from the scan data.

Quick start

git clone https://github.com/calghar/HARIS
cd HARIS
uv sync --extra web --extra reporting
uv run haris --help   # console script haris, entry point haris.cli:main
# CLI. --verify defaults to replay (off, replay, llm).
uv run haris --url https://example.com --profile quick --yes
uv run haris --list-profiles
uv run haris --web   # bind defaults are 127.0.0.1 and port 8000
# Docker
docker compose up
docker compose run --rm cli --url https://example.com --profile quick --yes
make reload
# Scanner template updates
uv run haris update-templates
uv run haris update-templates --scanner nuclei --list

Scanners

Scanner What it tests Install Version recorded
Wapiti SQLi, XSS, SSRF, command injection, CRLF, XXE pipx install wapiti3 3.3
SSLyze TLS protocols, cipher suites, certificate chain, Heartbleed, ROBOT pipx install sslyze 6.x
Nmap Open ports, service versions, exposed databases system package manager 7.x
Nikto Web server misconfigurations, outdated software, dangerous files brew install nikto 2.x
Nuclei technology-targeted templates, then exposure, misconfiguration and DAST baseline brew install nuclei 3.x
ZAP Active and passive web scan. Off by default and in no profile. --scanners zap ZAP download 2.16
garak Injection and leakage probes on a discovered chat route. Runs only with --ai-active and --i-have-authorization install the binary 0.17
promptfoo Red-team plugins on a discovered chat route. Same flags as garak install the binary 0.125

All scanners are separate programs. Install Wapiti and SSLyze with pipx, outside the HARIS environment. The version column is the adapter version attribute (docstrings: Wapiti 3.3.2, Nikto 2.6; Nuclei fixtures 3.7.1; garak.yaml 0.17.1; promptfoo.yaml 0.125.1). HARIS does not check the tool version at runtime.

Scan profiles

Estimates are the estimated_duration strings on each profile.

Profile Scanners Use
quick The 13 built-in checks other than ai_security First look. 1-3 minutes
pre-launch quick plus nmap, sslyze, wapiti Before production. 10-30 minutes
full pre-launch plus nikto, nuclei Full audit. 20-30 minutes. ZAP, garak and promptfoo are absent
ai-security header_checks, tls_checks, info_disclosure, ai_security, garak, promptfoo AI endpoints. 1-10 minutes
regression header_checks, tls_checks, misc_checks CI gate. 30-60 seconds
compliance header_checks, tls_checks, misc_checks, info_disclosure, cookie_checks, nmap, sslyze TLS, headers, cookies, disclosure, ports. 5-15 minutes
Built-in checks (14). quick runs every check except ai_security.
Check What it tests
header_checks Six headers: HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy. Also weak CSP or HSTS, a versioned Server banner, and any X-Powered-By header
tls_checks Certificate and TLS basics
misc_checks CORS, HTTP to HTTPS redirect, 14 sensitive paths
info_disclosure Error pages, debug endpoints, HTML comments
cookie_checks Session cookie flags, scope, expiry and name
sri_checks Subresource Integrity on third-party resources
cache_checks Cache-Control on login, account and session-setting responses
method_checks OPTIONS advertisement and TRACE
redirect_checks Open redirect via common redirect parameters
graphql_checks GraphQL introspection
openapi_checks Exposed OpenAPI or Swagger documents
listing_checks Directory listing
dns_checks CAA, SPF and DMARC
ai_security AI endpoints and MCP servers. Prompts only with --ai-active and --i-have-authorization. See docs/ai_security.md

The 14 sensitive paths are /.env, /.git/config, /robots.txt, /sitemap.xml, /.well-known/security.txt, /wp-login.php, /admin, /phpmyadmin, /server-status, /server-info, /.DS_Store, /crossdomain.xml, /elmah.axd and /trace.axd.

Configuration

Value precedence, highest first:

  1. Flags: --url, --profile, --output, --formats, --log-level.
  2. Environment variables that override YAML keys, for example HARIS_TARGET_URL and HARIS_PROFILE.
  3. The YAML file: --config, else HARIS_CONFIG, else ./config/default_config.yaml, else the packaged src/haris/resources/config/default_config.yaml.
  4. Built-in defaults.

Copy .env.example to .env. Docker Compose reads it. Outside Docker, export the variables in the shell.

HARIS_ADMIN_EMAIL=admin@example.com
HARIS_ADMIN_PASSWORD=changeme123
HARIS_SECRET_KEY=<random-32-char-string>   # python -c "import secrets; print(secrets.token_hex(32))"
# excerpt of src/haris/resources/config/default_config.yaml
profile: full
target:
  url: "https://example.com"
  auth:
    method: none          # none | cookie | header | form
llm:
  model: ""                        # required for LLM features: <route>/<id>
  api_key_env: LITELLM_API_KEY     # name of the variable that holds the key

Every variable, default and effect is in docs/configuration.md.

Web dashboard

uv run haris --web serves the dashboard. It requires login.

  • First admin: startup creates one when HARIS_ADMIN_EMAIL and HARIS_ADMIN_PASSWORD are set and the user table is empty.
  • Setup page: /auth/setup answers 404 until HARIS_SETUP_TOKEN is set, and once a user exists.
  • Registration: self-registration uses HARIS_ALLOWED_EMAIL_DOMAINS. Roles are admin and user.
  • OIDC: set HARIS_OIDC_ENABLED=true plus HARIS_OIDC_ISSUER, HARIS_OIDC_CLIENT_ID and HARIS_OIDC_CLIENT_SECRET.

Details are in docs/authentication.md.

LLM analysis

LLM features use LiteLLM, which is optional.

  • Install: uv sync --extra llm. The published image includes it.
  • Model: set llm.model to <route>/<id>, for example ollama_chat/llama3.1. For a gateway, also set llm.api_base and llm.api_key_env.
  • Old backend names: anthropic, openai, ollama and bedrock are rejected: CLI exit 3, web 400.

Setup and the container note are in docs/llm_integration.md. Migration steps are in docs/upgrading.md.

uv run haris llm ask --scan-id <id> --question "Top 3 risks for an exec"
uv run haris llm remediate --scan-id <id> --format jira
uv run haris llm summarize --scan-id <id> --audience developer
uv run haris --url https://example.com --profile quick --yes --llm-enrich   # in-pipeline enrichment

Documentation

A new scanner subclasses BaseScanner and is added to SCANNER_REGISTRY. A new check is added to CHECK_REGISTRY. A report subclasses BaseReporter and implements generate(). An LLM backend subclasses BaseLLMBackend and implements complete().

  • Black-box only. No source code analysis. Target auth methods on AuthConfig are none, cookie, header and form.
  • LLM features need an API key and have a cost. They are optional. Email verification needs SMTP. Without it, an admin activates accounts.
  • A security professional should confirm a finding before anyone acts on it. External scanner results depend on those tools being installed.

For authorised testing only. See LEGAL_NOTICE.md. MIT licence. See LICENSE.

Metadata

Release files for haris 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haris 0.8.0
File Size Uploaded Provenance Actions
haris-0.8.0.tar.gz 1.3 MB With provenance Details for haris-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for haris 0.8.0
File Interpreter ABI Platform Actions
haris-0.8.0-py3-none-any.whl Python 3 none any Details for haris-0.8.0-py3-none-any.whl

Total release size: 2.4 MB

Release files / haris-0.8.0.tar.gz

Download URL haris-0.8.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
5ea8370faedf30207089752ae3c53c0558a7729e16cf26544c09b7e9e69c0c7d
BLAKE2b-256 checksum
How to use checksums
fb3538740cc802fd30b8fa3e6d04b42329cd6ba0a6ad1e2917ec5f6bb9e2048f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / haris-0.8.0-py3-none-any.whl

Download URL haris-0.8.0-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2b1c5c9e7e88f94af01b83bbe13aa348dce60dabd596b596898a2394c8298b5c
BLAKE2b-256 checksum
How to use checksums
e1362554f2767e2c604f9b7971039f473a9987a4246d3851ec2195eb826b17ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for haris 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for haris-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page