Skip to main content

plain.scan

Remotely test for production best practices.

Overview

Plain Scan checks your production (or development) websites for common HTTP security misconfigurations—headers, SSL certificates, redirects, and other server-level security settings.

Unlike generic security scanners that flag everything as a potential issue, Plain Scan focuses on practical checks you should actually pay attention to. Every failure is highly actionable with specific guidance on what to fix.

Try it now: Visit plainframework.com/scan or run uvx plain-scan github.com

Audits

Security checks are organized into actionable audits. Each audit first checks if the security feature is detected on your site, then runs specific, practical checks to verify proper configuration. Results tell you exactly what's wrong and what to fix—no vague warnings or overwhelming noise.

Smart Defaults: Required vs Optional Audits

Plain Scan uses intelligent audit organization to ensure results are practical and actionable:

Required audits (will fail if missing or misconfigured):

  • CSP (Content Security Policy) - Protects against XSS attacks via content injection
  • HSTS (HTTP Strict Transport Security) - Enforces HTTPS connections
  • Content Type Options - Prevents MIME-sniffing attacks
  • Frame Options - Prevents clickjacking attacks
  • Referrer-Policy - Controls referrer information sharing
  • Redirects - Ensures proper HTTP to HTTPS redirects
  • TLS - Validates SSL certificate and connection security

Optional audits (won't fail if not present, only if misconfigured):

  • CORS (Cross-Origin Resource Sharing) - Only needed for cross-origin API endpoints

Conditional audits (automatically detected and only checked when relevant):

  • Cookies - Only checked if your site sets cookies in the response

This approach ensures you only see failures for things you should actually fix, not false positives for features you don't use. For deployment-specific exceptions (e.g., HSTS on staging), use --disable <audit> to skip specific checks.

FAQs

Can I use this against development servers?

Yes! Plain Scan can be used against development servers, but it's primarily designed to verify production configurations.

Why does the scan fail if a security header is missing?

Required headers (like CSP and HSTS) fail if missing because every production site needs them. See Audits for the complete list of required, optional, and conditional checks. Use --disable <audit> for deployment-specific exceptions.

Why does the scanner flag Google Analytics or Google Tag Manager in my CSP?

These domains (and similar CDNs) host JSONP endpoints that can be exploited to bypass CSP and execute arbitrary JavaScript, even though they appear "safe". This is based on research from Google's CSP Evaluator team. If you must use these services, consider using nonce-based or hash-based CSP instead of domain allowlisting.

Does Plain Scan enforce COOP/COEP/CORP (cross-origin isolation)?

Not yet. Most sites still do not ship the full cross-origin isolation header trio, so we treat it as optional for now. When a site opts into isolation (by sending any of those headers) the plan is to enforce them as a bundle, but we avoid failing scans for teams that do not need SharedArrayBuffer-level capabilities today. This keeps results focused on the widely adopted 80/20 baseline while leaving room to harden checks once adoption increases.

What are the scope and limitations of Plain Scan?

Plain Scan makes a single unauthenticated GET request to the provided URL. It checks what can be inferred from the HTTP response and performs a TLS socket probe. It does not:

  • Crawl additional pages or resources
  • Execute JavaScript or render in a browser
  • Follow authenticated flows

Emerging protections like cross-origin isolation headers (COOP/COEP/CORP) are currently informational and only enforced when you explicitly opt in.

Additional Resources

Security standards:

Plain Scan implements checks based on:

Complementary tools:

Plain Scan focuses on HTTP-level security checks and intentionally avoids browser rendering and JavaScript analysis. For a complete security picture, consider also using:

Installation

Web interface (no installation):

Visit plainframework.com/scan to scan any URL directly in your browser.

Command line (no installation):

uvx plain-scan github.com

This uses uvx to run plain-scan without adding it as a project dependency. You can use bare domains (which default to HTTPS) or full URLs.

As a project dependency:

pip install plain.scan

Or add to your pyproject.toml:

[project]
dependencies = [
    "plain.scan",
]

Then run scans:

plain-scan github.com

Metadata

Release files for plain.scan 0.4.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 plain.scan 0.4.0
File Size Uploaded Provenance Actions
plain_scan-0.4.0.tar.gz 30.3 kB Without provenance Details for plain_scan-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plain.scan 0.4.0
File Interpreter ABI Platform Actions
plain_scan-0.4.0-py3-none-any.whl Python 3 none any Details for plain_scan-0.4.0-py3-none-any.whl

Total release size: 70.6 kB

Release files / plain_scan-0.4.0.tar.gz

Download URL plain_scan-0.4.0.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9def2e9199e60804692c0d333e6f1f4db87625f490a6d921ab64b70829723713
BLAKE2b-256 checksum
How to use checksums
ae789798ddb5357e2e67ccba6fee0146a0e610821f263e0eb260a31a6d7b848c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / plain_scan-0.4.0-py3-none-any.whl

Download URL plain_scan-0.4.0-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e22b65b4bcf091078283611fad261669fb41b0527705c9eee7897d27a9bddae9
BLAKE2b-256 checksum
How to use checksums
95897bbbb4bbe9865549e615515e28b465fba4610e79326d21900e1f2295a36d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for plain.scan 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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