Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Security Headers Checker: A Quick First Look at HTTP Security Headers

Security Headers Checker Security Headers Checker is a small Python tool that checks several relevant HTTP security headers. It is useful for an initial review of websites you own or are authorized to assess and can be incorporated into manual or CI workflows. What it checks Content-Security-Policy Strict-Transport-Security X-Content-Type-Options X-Frame-Options Referrer-Policy Permissions-Policy…

Security Headers Checker is a compact Python tool designed to examine crucial HTTP security headers. It is beneficial for a preliminary examination of websites you manage or are permitted to audit, and can be integrated into manual or continuous integration workflows.

The checker evaluates Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy, and Cross-Origin-Embedder-Policy. It highlights absent headers and suboptimal configurations, offering a foundational assessment rather than a comprehensive application security test or professional analysis.

To use the tool, initiate a virtual environment, install the required packages, and run the script with the target website's URL. JSON output is also available. Each security header carries significance, but their implementation must align with the application's requirements. For instance, HSTS should only be activated after confirming HTTPS functionality and subdomain compatibility.

CSP must mirror the scripts, workers, frames, and fonts employed by the application. CORP and COEP can influence cross-origin resource behavior, while COOP can impact pop-ups and OAuth flows.

Interpret the output alongside other authentication, routing, cookie, caching, and application security policies. Establish a baseline for each environment, conduct tests in staging, and ensure repeatability. Initiate with non-blocking warnings and meticulously document exceptions. Incorporate deeper application tests and maintain a balanced approach that includes code review, application testing, and dependency management.

Remember, while a correctly configured header is a valuable enhancement, it does not ensure security.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Wireshark for Defensive Network Analysis: Read the Traffic Without Guessing

Wireshark for Defensive Network Analysis Wireshark turns network traffic into observable data. It is useful for diagnosing timeouts, incorrect DNS configuration, invalid certificates, and anomalous…

  • Wireshark aids network traffic analysis for defensive purposes
  • Analyze traffic with filters like ip.addr == 192.0.2.10
  • Ensure authorization, scope, and data security before analysis

Account Recovery JWT Evidence With 3 Controls for JWKS Cache Rotation

Device fingerprints can inform account recovery, but recording every fingerprint to explain every decision expands the telemetry footprint without establishing that the score came from a trusted…

  • Verify JWT signature against trusted issuer and audience
  • Retrieve public keys from bounded JWKS cache with refresh interval
  • Separate recovery authorization from risk score assessment

How to scrape SmartRecruiters jobs with Python (free public API, no key)

Disclosure: I built the Apify actor used in the second half of this post. It is a paid tool (pay per job). The first half is free and uses only SmartRecruiters' public API.

  • SmartRecruiters offers free public API for job scraping without requiring API key.
  • Company ID can be obtained from real job link on company's careers page.
  • API allows filtering by job type, location, release date, and returns job details in JSON.

More from Sunday 22 November →