repositories

daemon-sec-lotl

DÆMONBins: GTFOBins × LOLBAS × WADComs × LOOBins in one filterable catalog

clonegit clone https://git.daemon-sec.xyz/daemon-sec-lotl.git
_headers36 lines2.1 KiBraw download
# Security headers for every static response Cloudflare serves. Workers
# reads this file out of the asset directory; Astro copies public/ into
# dist/ verbatim, so this is where it is authored. Format and limits:
# developers.cloudflare.com/workers/static-assets/headers/
#
# Mirrors daemon-sec's staticSecurityHeaders() with the differences this
# site needs: 'wasm-unsafe-eval' and a same-origin worker for the Pagefind
# search index, and data: fonts for the icon face inlined in the CSS. No
# script, style or font is loaded from another origin.
#
# Inline scripts (the theme and page-iris bootstraps, the Vercel stubs, and
# any module Astro inlines) are allowed by hash, not by 'unsafe-inline'.
# The placeholder below is filled by scripts/csp-hashes.mjs at the end of
# `npm run build`, so this file is a template: the served copy is
# dist/_headers. Styles keep 'unsafe-inline' because Astro emits style
# attributes, which no hash can cover.
# Nothing on this site embeds another origin, so img-src and frame-src stay
# closed. frame-ancestors 'self' matches vercel.json, the Vercel-side twin.
/*
  Content-Security-Policy: default-src 'self'; base-uri 'self'; form-action 'self'; script-src 'self' __INLINE_SCRIPT_HASHES__ 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; font-src 'self' data:; object-src 'none'; media-src 'self'; frame-src 'none'; frame-ancestors 'self'; worker-src 'self'; upgrade-insecure-requests
  X-Frame-Options: SAMEORIGIN
  X-Content-Type-Options: nosniff
  Referrer-Policy: strict-origin-when-cross-origin
  Cross-Origin-Opener-Policy: same-origin
  Strict-Transport-Security: max-age=31536000; includeSubDomains
  Permissions-Policy: camera=(), microphone=(), geolocation=(), browsing-topics=()
  X-DNS-Prefetch-Control: off
  X-Permitted-Cross-Domain-Policies: none

# Cache rules carried over from vercel.json: the search index is content-
# hashed, the dataset is not.
/data/index-*.json
  Cache-Control: public, max-age=31536000, immutable

/data/techniques.json
  Cache-Control: public, max-age=600, must-revalidate