SecTerminal

⬡ SecTerminal / Security Guides

Practical web security guides

Short, implementation-focused references for the controls surfaced by the analyzer.
HTTP Headers8 min read

Content Security Policy without guesswork

Start in report-only mode, inventory trusted resources, and move toward nonces or hashes instead of broad host allowlists.

Read the field guide

A useful CSP is tailored to the application. Begin with Content-Security-Policy-Report-Only, collect violations, and remove sources the application does not need.

Avoid relying on 'unsafe-inline' or 'unsafe-eval'. Prefer per-response nonces for scripts you control and keep restrictive fallbacks such as default-src 'none'.

Transport Security6 min read

Deploying HSTS safely

Understand max-age, subdomain coverage, preload requirements, and the rollout sequence that avoids locking out an unprepared host.

Read the field guide

Serve HTTPS everywhere before enabling HSTS. Begin with a short max-age, monitor the site, then increase it after every required hostname is ready.

Add includeSubDomains only when all subdomains support HTTPS. Browser preload lists are difficult to reverse, so treat preload as a separate operational decision.

Session Security7 min read

Cookie flags that work together

Use Secure, HttpOnly, and an intentional SameSite policy to reduce session theft and cross-site request risk.

Read the field guide

Secure keeps cookies on HTTPS connections and HttpOnly prevents client-side scripts from reading sensitive values. Neither replaces output encoding or CSP.

Choose SameSite=Lax or Strict where flows allow it. Cross-site cookies require SameSite=None; Secure and should be narrowly scoped.