Skip to main content

HTTP security header analysis for the Klyrek ecosystem

Project description

klyrek-headers

HTTP security header analysis. Takes a single httpx.Response (as returned by klyrek-http/klyrek-crawler) and produces klyrek_core.models.Finding objects for missing or misconfigured security controls: HSTS, CSP, clickjacking protection, cookie flags (Secure/HttpOnly/SameSite), CORS misconfiguration, and information-disclosure headers (Server, X-Powered-By).

This is the first Klyrek module whose output is a Finding rather than just an Endpoint — everything upstream (klyrek-crawler) maps the application; this is where the tool starts telling you something is actually wrong.

from klyrek_headers.analyzer import analyze

response = client.get("https://target.com/")
findings = analyze(response)

for finding in findings:
    print(finding.severity, finding.title)

Findings are informational hints for a human reviewer to confirm, not proof of exploitability — e.g. a missing X-Frame-Options header is flagged even though modern CSP frame-ancestors may cover it, and a wildcard CORS origin is flagged even when browsers would reject the exact combination sent, because both patterns indicate configuration worth a second look.

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

klyrek_headers-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

klyrek_headers-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file klyrek_headers-0.1.0.tar.gz.

File metadata

  • Download URL: klyrek_headers-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for klyrek_headers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4fbdd500732e455629e53074adb12dc1337325af6703a4b8aa621fbaab06653
MD5 b28503410b02339a93f620347bdc4b89
BLAKE2b-256 e473c4d68e233e68a8f7dd3f1110939972bbb34e5d81ca4b640f4c890b3ffa4f

See more details on using hashes here.

File details

Details for the file klyrek_headers-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: klyrek_headers-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for klyrek_headers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4787debcfab6532ca4b3633a0e85b0a14a4df26a227cc1bba803510048e0adb4
MD5 bcf4b3b7145a0487b5737da52e8058d2
BLAKE2b-256 0ef3e769ba20ca1e251231cee27fd2f21e9c64017428bc6e7544313451f7be90

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