{"data":{"skill":{"slug":"kochetkov-ma-brewpage-publish","name":"brewpage-publish","icon":"📦","repo":"https://github.com/kochetkov-ma/claude-brewcode/tree/e1a9b59b44061b8668d251e6e27fd62c50f272b7/skills/brewpage-publish","status":"approved","author":"kochetkov-ma","authorVersion":null,"skillstoreRevision":7,"license":"MIT"},"licenseCorrection":null,"audit":{"id":"af643556-abd2-4ba7-b0a7-e6ba2111a19e","skill_id":"4bf85c8e-ddad-4143-9c98-4b5fde9536c8","version":10,"content_hash":"v3:6447e2daa97992fcdbc2183687e9619fa1e976b8:3ee6a06084d9f5ccd7a12cd51acd2486cb34fcf737664357aec8aa405545b581:67ccccb6f69711e392286856ef5a86b34ba5bf96e2dcb752e6c0a4ffcea0053d:736b696c6c732f6b6f636865746b6f762d6d612f62726577706167652d7075626c697368:92ff7e79d263a5c098675bc7dc444aac","risk_level":"high","is_blocked":false,"safe_to_publish":false,"analysis_status":"ok","agent_auto_install_policy":"confirmation_required","manual_install_policy":"allowed","summary":"The reviewed helpers send publication data to BrewPage and store reusable owner credentials locally. No evidence of malicious exfiltration, obfuscation, or prompt injection was found, but approval, archive review, private output, and receipt validation have gaps. The skill was reviewed without executing its scripts or contacting BrewPage.","remediation":[{"issue":"Direct invocation can trigger an external write without affirmative approval.","severity":"medium","suggestion":"Default to a local draft unless the user clearly approves the material, destination, and access. Require separate approval for a new publication after a failed update."},{"issue":"Reusable owner credentials can enter transcripts or persist in workspace files.","severity":"high","suggestion":"Use a host secret store or a verified private file handoff. Keep credentials out of standard output and remove deletion examples that put tokens on command lines."},{"issue":"ZIP review can differ from the archive sent to BrewPage.","severity":"medium","suggestion":"Build the manifest from a structured ZIP parser. Reject ambiguous paths and mismatched member names, and apply the same credential exclusions to directories and archives."},{"issue":"A link alone can cause REST to report success.","severity":"medium","suggestion":"Require a successful HTTP status and validate the receipt against the requested operation before reporting success or changing owner history."},{"issue":"The hosted Page data example loads a versionless browser script.","severity":"low","suggestion":"Document the runtime trust requirement and use a pinned release with subresource integrity when BrewPage provides one."}],"risk_factor_evidence":[{"factor":"network","evidence":[{"file":"LICENSE","line_end":3,"line_start":3},{"file":"README.md","line_end":15,"line_start":15},{"file":"README.md","line_end":57,"line_start":57},{"file":"references/page-data.md","line_end":20,"line_start":20},{"file":"scripts/brewpage-lib.sh","line_end":197,"line_start":197},{"file":"scripts/brewpage-lib.sh","line_end":249,"line_start":249},{"file":"scripts/brewpage-lib.sh","line_end":42,"line_start":42},{"file":"scripts/brewpage-lib.sh","line_end":43,"line_start":43},{"file":"scripts/brewpage-lib.sh","line_end":59,"line_start":59},{"file":"scripts/brewpage-lib.sh","line_end":201,"line_start":201},{"file":"scripts/brewpage-lib.sh","line_end":302,"line_start":302},{"file":"scripts/brewpage-lib.sh","line_end":324,"line_start":324},{"file":"scripts/brewpage-lib.sh","line_end":328,"line_start":328},{"file":"scripts/brewpage-run.sh","line_end":90,"line_start":90},{"file":"scripts/brewpage-run.sh","line_end":405,"line_start":405},{"file":"scripts/brewpage-run.sh","line_end":416,"line_start":416},{"file":"scripts/brewpage-run.sh","line_end":418,"line_start":418},{"file":"scripts/brewpage-run.sh","line_end":422,"line_start":422},{"file":"scripts/history.py","line_end":295,"line_start":295},{"file":"scripts/history.py","line_end":25,"line_start":25},{"file":"scripts/history.py","line_end":122,"line_start":122},{"file":"scripts/history.py","line_end":239,"line_start":239},{"file":"SKILL.md","line_end":12,"line_start":12},{"file":"SKILL.md","line_end":57,"line_start":57},{"file":"SKILL.md","line_end":57,"line_start":57}]},{"factor":"env_access","evidence":[{"file":"README.md","line_end":22,"line_start":22},{"file":"scripts/history.py","line_end":76,"line_start":76},{"file":"scripts/history.py","line_end":86,"line_start":86},{"file":"scripts/history.py","line_end":101,"line_start":101},{"file":"scripts/history.py","line_end":466,"line_start":466},{"file":"scripts/publish.mjs","line_end":304,"line_start":304},{"file":"scripts/publish.mjs","line_end":305,"line_start":305},{"file":"scripts/publish.mjs","line_end":304,"line_start":304},{"file":"scripts/publish.mjs","line_end":305,"line_start":305}]},{"factor":"external_commands","evidence":[{"file":"scripts/brewpage-lib.sh","line_end":59,"line_start":59},{"file":"scripts/brewpage-lib.sh","line_end":60,"line_start":60},{"file":"scripts/brewpage-lib.sh","line_end":70,"line_start":70},{"file":"scripts/brewpage-lib.sh","line_end":73,"line_start":73},{"file":"scripts/brewpage-lib.sh","line_end":196,"line_start":196},{"file":"scripts/brewpage-lib.sh","line_end":8,"line_start":8},{"file":"scripts/brewpage-lib.sh","line_end":9,"line_start":9},{"file":"scripts/brewpage-lib.sh","line_end":10,"line_start":10},{"file":"scripts/brewpage-lib.sh","line_end":21,"line_start":21},{"file":"scripts/brewpage-lib.sh","line_end":32,"line_start":32},{"file":"scripts/brewpage-lib.sh","line_end":37,"line_start":37},{"file":"scripts/brewpage-lib.sh","line_end":48,"line_start":48},{"file":"scripts/brewpage-lib.sh","line_end":71,"line_start":71},{"file":"scripts/brewpage-lib.sh","line_end":74,"line_start":74},{"file":"scripts/brewpage-lib.sh","line_end":133,"line_start":133},{"file":"scripts/brewpage-lib.sh","line_end":217,"line_start":217},{"file":"scripts/brewpage-lib.sh","line_end":233,"line_start":233},{"file":"scripts/brewpage-lib.sh","line_end":240,"line_start":240},{"file":"scripts/brewpage-lib.sh","line_end":246,"line_start":246},{"file":"scripts/brewpage-lib.sh","line_end":256,"line_start":251},{"file":"scripts/brewpage-lib.sh","line_end":285,"line_start":285},{"file":"scripts/brewpage-lib.sh","line_end":302,"line_start":302},{"file":"scripts/brewpage-lib.sh","line_end":304,"line_start":304},{"file":"scripts/brewpage-lib.sh","line_end":306,"line_start":306},{"file":"scripts/brewpage-lib.sh","line_end":321,"line_start":321},{"file":"scripts/brewpage-lib.sh","line_end":322,"line_start":322},{"file":"scripts/brewpage-lib.sh","line_end":324,"line_start":324},{"file":"scripts/brewpage-lib.sh","line_end":326,"line_start":326},{"file":"scripts/brewpage-lib.sh","line_end":328,"line_start":327},{"file":"scripts/brewpage-lib.sh","line_end":332,"line_start":332},{"file":"scripts/brewpage-lib.sh","line_end":389,"line_start":387},{"file":"scripts/brewpage-lib.sh","line_end":406,"line_start":406},{"file":"scripts/brewpage-lib.sh","line_end":73,"line_start":70},{"file":"scripts/brewpage-lib.sh","line_end":196,"line_start":73},{"file":"scripts/brewpage-run.sh","line_end":6,"line_start":6},{"file":"scripts/brewpage-run.sh","line_end":27,"line_start":27},{"file":"scripts/brewpage-run.sh","line_end":61,"line_start":61},{"file":"scripts/brewpage-run.sh","line_end":63,"line_start":63},{"file":"scripts/brewpage-run.sh","line_end":66,"line_start":66},{"file":"scripts/brewpage-run.sh","line_end":69,"line_start":69},{"file":"scripts/brewpage-run.sh","line_end":70,"line_start":70},{"file":"scripts/brewpage-run.sh","line_end":72,"line_start":72},{"file":"scripts/brewpage-run.sh","line_end":78,"line_start":78},{"file":"scripts/brewpage-run.sh","line_end":79,"line_start":79},{"file":"scripts/brewpage-run.sh","line_end":90,"line_start":90},{"file":"scripts/brewpage-run.sh","line_end":118,"line_start":116},{"file":"scripts/brewpage-run.sh","line_end":216,"line_start":214},{"file":"scripts/brewpage-run.sh","line_end":220,"line_start":219},{"file":"scripts/brewpage-run.sh","line_end":283,"line_start":283},{"file":"scripts/brewpage-run.sh","line_end":284,"line_start":284}]},{"factor":"filesystem","evidence":[{"file":"scripts/brewpage-lib.sh","line_end":92,"line_start":92},{"file":"scripts/brewpage-lib.sh","line_end":10,"line_start":10},{"file":"scripts/brewpage-lib.sh","line_end":14,"line_start":14},{"file":"scripts/brewpage-lib.sh","line_end":28,"line_start":28},{"file":"scripts/brewpage-lib.sh","line_end":38,"line_start":38},{"file":"scripts/brewpage-lib.sh","line_end":98,"line_start":98},{"file":"scripts/brewpage-lib.sh","line_end":103,"line_start":103},{"file":"scripts/brewpage-lib.sh","line_end":8,"line_start":8},{"file":"scripts/brewpage-lib.sh","line_end":9,"line_start":9},{"file":"scripts/brewpage-lib.sh","line_end":10,"line_start":10},{"file":"scripts/brewpage-lib.sh","line_end":21,"line_start":21},{"file":"scripts/brewpage-lib.sh","line_end":54,"line_start":54},{"file":"scripts/brewpage-lib.sh","line_end":115,"line_start":115},{"file":"scripts/brewpage-lib.sh","line_end":160,"line_start":160},{"file":"scripts/brewpage-lib.sh","line_end":161,"line_start":161},{"file":"scripts/brewpage-lib.sh","line_end":178,"line_start":178},{"file":"scripts/brewpage-lib.sh","line_end":190,"line_start":190},{"file":"scripts/brewpage-lib.sh","line_end":273,"line_start":273},{"file":"scripts/brewpage-lib.sh","line_end":302,"line_start":302},{"file":"scripts/brewpage-lib.sh","line_end":306,"line_start":306},{"file":"scripts/brewpage-lib.sh","line_end":318,"line_start":318},{"file":"scripts/brewpage-lib.sh","line_end":322,"line_start":322},{"file":"scripts/brewpage-lib.sh","line_end":327,"line_start":327},{"file":"scripts/brewpage-lib.sh","line_end":369,"line_start":369},{"file":"scripts/brewpage-lib.sh","line_end":373,"line_start":373},{"file":"scripts/brewpage-lib.sh","line_end":121,"line_start":121},{"file":"scripts/brewpage-run.sh","line_end":312,"line_start":312},{"file":"scripts/brewpage-run.sh","line_end":79,"line_start":79},{"file":"scripts/brewpage-run.sh","line_end":88,"line_start":88},{"file":"scripts/brewpage-run.sh","line_end":94,"line_start":94},{"file":"scripts/brewpage-run.sh","line_end":129,"line_start":129},{"file":"scripts/brewpage-run.sh","line_end":300,"line_start":300},{"file":"scripts/brewpage-run.sh","line_end":338,"line_start":338},{"file":"scripts/brewpage-run.sh","line_end":406,"line_start":406},{"file":"scripts/brewpage-run.sh","line_end":442,"line_start":442},{"file":"scripts/brewpage-run.sh","line_end":459,"line_start":459},{"file":"scripts/brewpage-run.sh","line_end":119,"line_start":119},{"file":"scripts/brewpage-run.sh","line_end":460,"line_start":460},{"file":"scripts/history.py","line_end":492,"line_start":492},{"file":"scripts/history.py","line_end":52,"line_start":52},{"file":"scripts/history.py","line_end":207,"line_start":207},{"file":"scripts/history.py","line_end":60,"line_start":60},{"file":"scripts/history.py","line_end":528,"line_start":528},{"file":"scripts/publish.mjs","line_end":5,"line_start":5},{"file":"scripts/publish.mjs","line_end":178,"line_start":178},{"file":"scripts/publish.mjs","line_end":274,"line_start":274},{"file":"scripts/publish.mjs","line_end":5,"line_start":5},{"file":"scripts/publish.mjs","line_end":374,"line_start":374},{"file":"scripts/publish.mjs","line_end":415,"line_start":415},{"file":"scripts/publish.mjs","line_end":103,"line_start":103}]}],"critical_findings":[],"high_findings":[{"title":"Private Recovery Can Return Owner Credentials in Tool Output","locations":[{"file":"scripts/brewpage-run.sh","line_end":169,"line_start":166},{"file":"scripts/history.py","line_end":385,"line_start":377},{"file":"references/ownership.md","line_end":33,"line_start":26}],"confidence":0.98,"description":"The recovery command prints the full owner receipt to standard output after checking a command flag. A shared or logged tool channel can expose a reusable owner token despite protected file permissions.","review_kind":"security","source_category":"semantic","source_severity":"high","confidence_reasoning":"The flag gates the command, but the helper cannot verify the output channel. The receipt validation confirms the printed object contains a reusable token."}],"medium_findings":[{"title":"Shell command substitution","locations":[{"file":"scripts/brewpage-lib.sh","line_end":217,"line_start":217}],"confidence":0.96,"description":"output=$(curl -q -s -A \"$BP_UA\" -X \"$method\" \"$url\" \"$@\" -w $'\\nBP_HTTP_STATUS:%{http_code}') || ret","review_kind":"capability","source_category":"external_commands","source_severity":"medium","confidence_reasoning":"This is the REST transport for publication bytes and selected owner or password headers. Data leaves the workspace for the first-party API."},{"title":"Hidden file access","locations":[{"file":"scripts/brewpage-lib.sh","line_end":38,"line_start":38}],"confidence":0.96,"description":"HISTORY_FILE=\"$BP_ROOT/.claude/brewpage-history.md\"","review_kind":"capability","source_category":"filesystem","source_severity":"medium","confidence_reasoning":"The hidden workspace history stores plaintext reusable owner tokens. Mode and Git checks limit exposure but do not replace a secret store."},{"title":"Shell command substitution","locations":[{"file":"scripts/brewpage-run.sh","line_end":405,"line_start":405}],"confidence":0.96,"description":"domain_limits=$(bp_request GET https://brewpage.app/api/limits) || die \"cannot verify selected profi","review_kind":"capability","source_category":"external_commands","source_severity":"medium","confidence_reasoning":"Unlike the public limits command, this request sends the selected owner header to verify custom-domain eligibility at BrewPage."},{"title":"Shell command substitution","locations":[{"file":"scripts/brewpage-run.sh","line_end":438,"line_start":438}],"confidence":0.96,"description":"response=$(bp_request \"$method\" \"$endpoint\" -H \"Content-Type: application/json\" -d @\"$BP_RUN_DIR/pay","review_kind":"capability","source_category":"external_commands","source_severity":"medium","confidence_reasoning":"This call sends selected HTML or Markdown and any Page data settings to BrewPage. A successful write exposes the result to the selected audience."},{"title":"Shell command substitution","locations":[{"file":"scripts/brewpage-run.sh","line_end":444,"line_start":444}],"confidence":0.96,"description":"response=$(bp_request \"$method\" \"$endpoint\" -H \"Content-Type: application/json\" -d @\"$content\") || d","review_kind":"capability","source_category":"external_commands","source_severity":"medium","confidence_reasoning":"This call transmits the selected JSON bytes to BrewPage and creates or updates a remotely accessible publication."},{"title":"Shell command substitution","locations":[{"file":"scripts/brewpage-run.sh","line_end":449,"line_start":449}],"confidence":0.96,"description":"response=$(bp_request \"$method\" \"$endpoint\" -F \"$(form_file file \"$content\")\") || die \"$unknown\"","review_kind":"capability","source_category":"external_commands","source_severity":"medium","confidence_reasoning":"This call uploads the exact checked file to BrewPage. A named-file check cannot determine whether its contents contain private data."},{"title":"Shell command substitution","locations":[{"file":"scripts/brewpage-run.sh","line_end":465,"line_start":465}],"confidence":0.96,"description":"response=$(bp_request \"$method\" \"$endpoint\" -F \"$(form_file archive \"$CHECKED_PATH\")\" ${state:+--for","review_kind":"capability","source_category":"external_commands","source_severity":"medium","confidence_reasoning":"This call uploads the checked site archive and optional Page data settings. The upload creates or changes a remotely accessible site."},{"title":"Direct Invocation Can Imply Permission to Publish","locations":[{"file":"SKILL.md","line_end":23,"line_start":12},{"file":"SKILL.md","line_end":40,"line_start":36}],"confidence":0.96,"description":"The prompt contract lets direct invocation with supplied material default to a live publish. Supplying material is not always an affirmative decision to send it to BrewPage or create a shareable link.","review_kind":"security","source_category":"semantic","source_severity":"medium","confidence_reasoning":"The default is explicit in the prompt contract. Local-only and ambiguous requests have safeguards, but the default does not require affirmative permission to publish."},{"title":"ZIP Review Does Not Reliably Represent Every Uploaded Member","locations":[{"file":"scripts/publish.mjs","line_end":203,"line_start":191},{"file":"scripts/publish.mjs","line_end":351,"line_start":324},{"file":"scripts/publish.mjs","line_end":475,"line_start":458},{"file":"scripts/brewpage-run.sh","line_end":466,"line_start":452}],"confidence":0.94,"description":"The ZIP manifest uses a trimmed, line-based listing instead of preserving exact member names. REST uploads the original checked archive, so a manifest approval does not establish that every member was represented accurately.","review_kind":"security","source_category":"semantic","source_severity":"medium","confidence_reasoning":"The listing trims names and does not validate all members as canonical, unique paths. Byte limits and digest binding do not resolve differences between the manifest and the archive."},{"title":"REST Success Is Not Bound to HTTP Status","locations":[{"file":"scripts/brewpage-lib.sh","line_end":225,"line_start":216},{"file":"scripts/brewpage-lib.sh","line_end":329,"line_start":295},{"file":"scripts/brewpage-lib.sh","line_end":359,"line_start":351}],"confidence":0.97,"description":"The runner enters its success path when a response contains an HTTPS link, even if the transport recorded a non-success status. It can report a publication as confirmed without a valid success receipt.","review_kind":"security","source_category":"semantic","source_severity":"medium","confidence_reasoning":"Status is recorded at transport time but read only when the link is absent. No live service response was tested."}],"low_findings":[{"title":"Hardcoded URL","locations":[{"file":"references/page-data.md","line_end":20,"line_start":20}],"confidence":0.96,"description":"<script src=\"https://brewpage.app/js/state.js\"></script>","review_kind":"capability","source_category":"network","source_severity":"low","confidence_reasoning":"A published form loads and executes a versionless BrewPage script. Its behavior depends on the current hosted script."},{"title":"HTTP client library","locations":[{"file":"scripts/brewpage-lib.sh","line_end":197,"line_start":197}],"confidence":0.96,"description":"bp_request() {","review_kind":"capability","source_category":"network","source_severity":"low","confidence_reasoning":"This is the REST transport for publication bytes and selected owner or password headers. Data leaves the workspace for the first-party API."},{"title":"Hardcoded URL","locations":[{"file":"scripts/brewpage-run.sh","line_end":405,"line_start":405}],"confidence":0.96,"description":"domain_limits=$(bp_request GET https://brewpage.app/api/limits) || die \"cannot verify selected profi","review_kind":"capability","source_category":"network","source_severity":"low","confidence_reasoning":"Unlike the public limits command, this request sends the selected owner header to verify custom-domain eligibility at BrewPage."},{"title":"Python environment access","locations":[{"file":"scripts/history.py","line_end":76,"line_start":76}],"confidence":0.88,"description":"result = subprocess.run(['git', '-C', root] + arguments, stdout=subprocess.PIPE, stderr=subprocess.P","review_kind":"capability","source_category":"env_access","source_severity":"low","confidence_reasoning":"The Git helper inherits the complete environment, not just locale and path settings. No remote transmission was found, but the child receives unnecessary variables."}],"dangerous_patterns":[],"files_scanned":11,"total_lines":2363,"audit_model":"codex","audited_at":"2026-11-19T07:38:09.739+00:00","created_at":"2026-11-20T03:03:29.381256+00:00","static_findings":[{"id":"network:LICENSE:3:hardcoded-url","file":"LICENSE","pattern":"Hardcoded URL","snippet":"Copyright (c) 2025-2026 Maksim Kochetkov (kochetkov-ma), https://github.com/kochetkov-ma/claude-brew","category":"network","line_end":3,"severity":"low","line_start":3},{"id":"network:README.md:15:python-http-libraries","file":"README.md","pattern":"Python HTTP libraries","snippet":"| Draft | “Prepare a draft of this RSVP form for local BrewPage preview.” | Local HTML and, if neede","category":"network","line_end":15,"severity":"low","line_start":15},{"id":"network:README.md:57:hardcoded-url","file":"README.md","pattern":"Hardcoded URL","snippet":"curl -s -A \"ClaudeCode/6.13.0 (+https://brewpage.app)\" https://brewpage.app/api/limits","category":"network","line_end":57,"severity":"low","line_start":57},{"id":"env_access:README.md:22:configuration-library","file":"README.md","pattern":"Configuration library","snippet":"The skill prefers a BrewPage MCP tool exposed by your host whose schema supports the material, reque","category":"env_access","line_end":22,"severity":"low","line_start":22},{"id":"blocker:README.md:42:system-reconnaissance","file":"README.md","pattern":"System reconnaissance","snippet":"| `--domain hostname` | Request a custom hostname when creating an eligible HTML page or site withou","category":"blocker","line_end":42,"severity":"low","line_start":42},{"id":"blocker:README.md:78:system-reconnaissance","file":"README.md","pattern":"System reconnaissance","snippet":"If you request a hostname you control, use an eligible HTML page or site and authorized domain manag","category":"blocker","line_end":78,"severity":"low","line_start":78},{"id":"blocker:references/custom-domain.md:3:system-reconnaissance","file":"references/custom-domain.md","pattern":"System reconnaissance","snippet":"Use a hostname the user controls when they request it. The publication must be an eligible, live HTM","category":"blocker","line_end":3,"severity":"low","line_start":3},{"id":"blocker:references/custom-domain.md:5:system-reconnaissance","file":"references/custom-domain.md","pattern":"System reconnaissance","snippet":"- On compatible MCP, include `domain` on `publish` when creating an eligible publication. For an exi","category":"blocker","line_end":5,"severity":"low","line_start":5},{"id":"blocker:references/custom-domain.md:6:system-reconnaissance","file":"references/custom-domain.md","pattern":"System reconnaissance","snippet":"- On runner REST create, append `--domain '{hostname}'` for eligible HTML or sites with an existing ","category":"blocker","line_end":6,"severity":"low","line_start":6},{"id":"blocker:references/custom-domain.md:7:system-reconnaissance","file":"references/custom-domain.md","pattern":"System reconnaissance","snippet":"- For an existing item, the REST attachment operation is `PUT /api/publications/{type}/{ns}/{id}/dom","category":"blocker","line_end":7,"severity":"low","line_start":7},{"id":"blocker:references/ownership.md:5:system-reconnaissance","file":"references/ownership.md","pattern":"System reconnaissance","snippet":"- Reuse the owner already chosen for this BrewPage origin, workspace and target. Prefer an appropria","category":"blocker","line_end":5,"severity":"low","line_start":5},{"id":"network:references/page-data.md:20:hardcoded-url","file":"references/page-data.md","pattern":"Hardcoded URL","snippet":"<script src=\"https://brewpage.app/js/state.js\"></script>","category":"network","line_end":20,"severity":"low","line_start":20},{"id":"blocker:references/page-data.md:50:system-reconnaissance","file":"references/page-data.md","pattern":"System reconnaissance","snippet":"- Keep the absolute `https://brewpage.app/js/state.js` classic script before dependent code. Avoid `","category":"blocker","line_end":50,"severity":"low","line_start":50},{"id":"blocker:references/publishing.md:74:system-reconnaissance","file":"references/publishing.md","pattern":"System reconnaissance","snippet":"For eligible HTML and sites, append `--state '{state}'` when Page data was requested. The value is o","category":"blocker","line_end":74,"severity":"low","line_start":74},{"id":"blocker:references/publishing.md:3:network-reconnaissance","file":"references/publishing.md","pattern":"Network reconnaissance","snippet":"## Prepare the material and choose its access","category":"blocker","line_end":5,"severity":"low","line_start":3},{"id":"external_commands:scripts/brewpage-lib.sh:59:ruby-shell-backtick-execution","file":"scripts/brewpage-lib.sh","pattern":"Ruby/shell backtick execution","snippet":"> Delete: `curl -s -A \"ClaudeCode/6.13.0 (+https://brewpage.app)\" -X DELETE \"<Owner API>\" -H \"X-Owne","category":"external_commands","line_end":59,"severity":"medium","line_start":59},{"id":"external_commands:scripts/brewpage-lib.sh:60:ruby-shell-backtick-execution","file":"scripts/brewpage-lib.sh","pattern":"Ruby/shell backtick execution","snippet":"> Update a site (same URL; old publications answer 409, see above): `PUT /api/sites/<ns>/<id>` with ","category":"external_commands","line_end":60,"severity":"medium","line_start":60},{"id":"external_commands:scripts/brewpage-lib.sh:70:ruby-shell-backtick-execution","file":"scripts/brewpage-lib.sh","pattern":"Ruby/shell backtick execution","snippet":"printf '| %s | [%s](%s) | `%s` | %sd | %s | %s | `%s` |\\n' \\","category":"external_commands","line_end":70,"severity":"medium","line_start":70},{"id":"external_commands:scripts/brewpage-lib.sh:73:ruby-shell-backtick-execution","file":"scripts/brewpage-lib.sh","pattern":"Ruby/shell backtick execution","snippet":"printf '| %s | [%s](%s) | `%s` | %sd | %s |\\n' \\","category":"external_commands","line_end":73,"severity":"medium","line_start":73},{"id":"external_commands:scripts/brewpage-lib.sh:196:ruby-shell-backtick-execution","file":"scripts/brewpage-lib.sh","pattern":"Ruby/shell backtick execution","snippet":"# A function has its own positional parameters, so no `set --` juggling is needed.","category":"external_commands","line_end":196,"severity":"medium","line_start":196},{"id":"external_commands:scripts/brewpage-lib.sh:8:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"p=$(cd \"$1\" 2>/dev/null && pwd -P) || return 1","category":"external_commands","line_end":8,"severity":"medium","line_start":8},{"id":"external_commands:scripts/brewpage-lib.sh:9:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"[ -n \"${HOME:-}\" ] && [ \"$p\" = \"$(cd \"$HOME\" 2>/dev/null && pwd -P)\" ] && return 0","category":"external_commands","line_end":9,"severity":"medium","line_start":9},{"id":"external_commands:scripts/brewpage-lib.sh:10:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"[ -n \"${CLAUDE_CONFIG_DIR:-}\" ] && [ \"$p/.claude\" = \"$(cd \"$CLAUDE_CONFIG_DIR\" 2>/dev/null && pwd -P","category":"external_commands","line_end":10,"severity":"medium","line_start":10},{"id":"external_commands:scripts/brewpage-lib.sh:21:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"root=$(git rev-parse --show-toplevel 2>/dev/null) || root=\"\"","category":"external_commands","line_end":21,"severity":"medium","line_start":21},{"id":"external_commands:scripts/brewpage-lib.sh:32:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"d=$(dirname \"$d\")","category":"external_commands","line_end":32,"severity":"medium","line_start":32},{"id":"external_commands:scripts/brewpage-lib.sh:37:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"BP_ROOT=\"$(bp_project_root)\"","category":"external_commands","line_end":37,"severity":"medium","line_start":37},{"id":"external_commands:scripts/brewpage-lib.sh:48:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"python3 \"$(dirname \"${BASH_SOURCE[0]}\")/history.py\" \"$operation\" \"$BP_ROOT\" \"${HISTORY_FILE#\"$BP_ROO","category":"external_commands","line_end":48,"severity":"medium","line_start":48},{"id":"external_commands:scripts/brewpage-lib.sh:71:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"\"$(date -u '+%Y-%m-%d %H:%M')\" \"$1\" \"$1\" \"$2\" \"$3\" \"$4\" \"$5\" \"${6:-}\" | bp_history append ${BP_VERIF","category":"external_commands","line_end":71,"severity":"medium","line_start":71},{"id":"external_commands:scripts/brewpage-lib.sh:74:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"\"$(date -u '+%Y-%m-%d %H:%M')\" \"$1\" \"$1\" \"$2\" \"$3\" \"$4\" | bp_history append ${BP_VERIFY_RECEIPT:+ver","category":"external_commands","line_end":74,"severity":"medium","line_start":74},{"id":"external_commands:scripts/brewpage-lib.sh:133:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"[ -n \"$(find \"$BP_RUN_DIR\" -maxdepth 0 -type d -perm 0700 -print)\" ] || {","category":"external_commands","line_end":133,"severity":"medium","line_start":133},{"id":"external_commands:scripts/brewpage-lib.sh:217:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"output=$(curl -q -s -A \"$BP_UA\" -X \"$method\" \"$url\" \"$@\" -w $'\\nBP_HTTP_STATUS:%{http_code}') || ret","category":"external_commands","line_end":217,"severity":"medium","line_start":217},{"id":"external_commands:scripts/brewpage-lib.sh:233:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"selected=$(bp_history select \"$intent\" \"$target\" \"$source\" \"$BP_OWNER_HEADER_FILE\") || return 1","category":"external_commands","line_end":233,"severity":"medium","line_start":233},{"id":"external_commands:scripts/brewpage-lib.sh:240:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"BREWPAGE_OPERATION_ID=$(python3 -I -S -c 'import secrets; print(secrets.token_hex(12))') || return 1","category":"external_commands","line_end":240,"severity":"medium","line_start":240},{"id":"external_commands:scripts/brewpage-lib.sh:246:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"python3 \"$(dirname \"${BASH_SOURCE[0]}\")/history.py\" receipt-ready \"$BP_RECOVERY_DIR\" brewpage-recove","category":"external_commands","line_end":246,"severity":"medium","line_start":246},{"id":"external_commands:scripts/brewpage-lib.sh:251:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"BP_OPERATION_REQUEST=$(printf '%s' \"${5:-}\" | python3 -I -S -c '","category":"external_commands","line_end":256,"severity":"medium","line_start":251},{"id":"external_commands:scripts/brewpage-lib.sh:285:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"if printf '%s\\n' \"$receipt\" | python3 \"$(dirname \"${BASH_SOURCE[0]}\")/history.py\" receipt \"$BP_RECOV","category":"external_commands","line_end":285,"severity":"medium","line_start":285},{"id":"external_commands:scripts/brewpage-lib.sh:302:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"url=$(printf '%s' \"$response\" | jq -r '.link | strings | select(test(\"^https://[^[:space:][:cntrl:]]","category":"external_commands","line_end":302,"severity":"medium","line_start":302},{"id":"external_commands:scripts/brewpage-lib.sh:304:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"reason=$(bp_error_reason \"$response\")","category":"external_commands","line_end":304,"severity":"medium","line_start":304},{"id":"external_commands:scripts/brewpage-lib.sh:306:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"if [ -f \"$BP_RUN_DIR/http-status.txt\" ]; then status=$(cat \"$BP_RUN_DIR/http-status.txt\"); else stat","category":"external_commands","line_end":306,"severity":"medium","line_start":306},{"id":"external_commands:scripts/brewpage-lib.sh:321:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"token=$(printf '%s' \"$response\" | jq -r '.ownerToken | strings | select(test(\"^[A-Za-z0-9_-]+$\"))')","category":"external_commands","line_end":321,"severity":"medium","line_start":321},{"id":"external_commands:scripts/brewpage-lib.sh:322:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"manage=$(printf '%s' \"$response\" | jq -r '.manageUrl | strings | explode | map(select(. > 32 and . !","category":"external_commands","line_end":322,"severity":"medium","line_start":322},{"id":"external_commands:scripts/brewpage-lib.sh:324:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"owner_api=$(printf '%s' \"$response\" | jq -r '.ownerLink | strings | select(test(\"^https://brewpage\\\\","category":"external_commands","line_end":324,"severity":"medium","line_start":324},{"id":"external_commands:scripts/brewpage-lib.sh:326:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"identity=$(printf '%s' \"$response\" | jq -c '{id, namespace, type, routingCohort, deliveryMode, modeL","category":"external_commands","line_end":326,"severity":"medium","line_start":326},{"id":"external_commands:scripts/brewpage-lib.sh:327:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"receipt=$(printf '%s' \"$response\" | jq -c --rawfile proof \"${BP_OWNER_HEADER_FILE:-/dev/null}\" --arg","category":"external_commands","line_end":328,"severity":"medium","line_start":327},{"id":"external_commands:scripts/brewpage-lib.sh:332:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"fcount=$(printf '%s' \"$response\" | jq -r '.fileCount // \"?\"')","category":"external_commands","line_end":332,"severity":"medium","line_start":332},{"id":"external_commands:scripts/brewpage-lib.sh:387:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"digest=$(python3 - \"$zip\" <<'PY'","category":"external_commands","line_end":389,"severity":"medium","line_start":387},{"id":"external_commands:scripts/brewpage-lib.sh:406:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"ENTRY=$(printf '%s\\n' \"$manifest\" | sed -n 's/^ENTRY: //p')","category":"external_commands","line_end":406,"severity":"medium","line_start":406},{"id":"external_commands:scripts/brewpage-lib.sh:70:template-literal-with-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Template literal with command substitution","snippet":"printf '| %s | [%s](%s) | `%s` | %sd | %s | %s | `%s` |\\n' \\","category":"external_commands","line_end":73,"severity":"medium","line_start":70},{"id":"external_commands:scripts/brewpage-lib.sh:73:template-literal-with-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Template literal with command substitution","snippet":"printf '| %s | [%s](%s) | `%s` | %sd | %s |\\n' \\","category":"external_commands","line_end":196,"severity":"medium","line_start":73},{"id":"network:scripts/brewpage-lib.sh:197:http-client-library","file":"scripts/brewpage-lib.sh","pattern":"HTTP client library","snippet":"bp_request() {","category":"network","line_end":197,"severity":"low","line_start":197},{"id":"network:scripts/brewpage-lib.sh:249:http-client-library","file":"scripts/brewpage-lib.sh","pattern":"HTTP client library","snippet":"bp_operation_request() {","category":"network","line_end":249,"severity":"low","line_start":249},{"id":"network:scripts/brewpage-lib.sh:42:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"# User-Agent on every brewpage.app request: <client>/<shipped version> (+https://brewpage.app).","category":"network","line_end":42,"severity":"low","line_start":42},{"id":"network:scripts/brewpage-lib.sh:43:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"BP_UA=\"ClaudeCode/6.13.0 (+https://brewpage.app)\"","category":"network","line_end":43,"severity":"low","line_start":43},{"id":"network:scripts/brewpage-lib.sh:59:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"> Delete: `curl -s -A \"ClaudeCode/6.13.0 (+https://brewpage.app)\" -X DELETE \"<Owner API>\" -H \"X-Owne","category":"network","line_end":59,"severity":"low","line_start":59},{"id":"network:scripts/brewpage-lib.sh:201:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"https://brewpage.app/api/*) : ;;","category":"network","line_end":201,"severity":"low","line_start":201},{"id":"network:scripts/brewpage-lib.sh:302:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"url=$(printf '%s' \"$response\" | jq -r '.link | strings | select(test(\"^https://[^[:space:][:cntrl:]]","category":"network","line_end":302,"severity":"low","line_start":302},{"id":"network:scripts/brewpage-lib.sh:324:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"owner_api=$(printf '%s' \"$response\" | jq -r '.ownerLink | strings | select(test(\"^https://brewpage\\\\","category":"network","line_end":324,"severity":"low","line_start":324},{"id":"network:scripts/brewpage-lib.sh:328:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"'{origin:\"https://brewpage.app\",ownerApi:$api,readerUrl:.link,ownerToken:(.ownerToken // ($proof | s","category":"network","line_end":328,"severity":"low","line_start":328},{"id":"filesystem:scripts/brewpage-lib.sh:92:path-traversal-sequence","file":"scripts/brewpage-lib.sh","pattern":"Path traversal sequence","snippet":"*[!ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._/-]* | */../* | ../* | */..) echo","category":"filesystem","line_end":92,"severity":"high","line_start":92},{"id":"filesystem:scripts/brewpage-lib.sh:10:hidden-file-access","file":"scripts/brewpage-lib.sh","pattern":"Hidden file access","snippet":"[ -n \"${CLAUDE_CONFIG_DIR:-}\" ] && [ \"$p/.claude\" = \"$(cd \"$CLAUDE_CONFIG_DIR\" 2>/dev/null && pwd -P","category":"filesystem","line_end":10,"severity":"medium","line_start":10},{"id":"filesystem:scripts/brewpage-lib.sh:14:hidden-file-access","file":"scripts/brewpage-lib.sh","pattern":"Hidden file access","snippet":"# walk for .git/.claude (profile parents skipped) -> PWD. The history file must not follow a nested ","category":"filesystem","line_end":14,"severity":"medium","line_start":14},{"id":"filesystem:scripts/brewpage-lib.sh:28:hidden-file-access","file":"scripts/brewpage-lib.sh","pattern":"Hidden file access","snippet":"if [ -d \"$d/.git\" ] || { [ -d \"$d/.claude\" ] && ! bp_is_profile_parent \"$d\"; }; then","category":"filesystem","line_end":28,"severity":"medium","line_start":28},{"id":"filesystem:scripts/brewpage-lib.sh:38:hidden-file-access","file":"scripts/brewpage-lib.sh","pattern":"Hidden file access","snippet":"HISTORY_FILE=\"$BP_ROOT/.claude/brewpage-history.md\"","category":"filesystem","line_end":38,"severity":"medium","line_start":38},{"id":"filesystem:scripts/brewpage-lib.sh:98:hidden-file-access","file":"scripts/brewpage-lib.sh","pattern":"Hidden file access","snippet":"# rc 0: path ends in .html/.htm, any case; such a file is always published as a page.","category":"filesystem","line_end":98,"severity":"medium","line_start":98},{"id":"filesystem:scripts/brewpage-lib.sh:103:hidden-file-access","file":"scripts/brewpage-lib.sh","pattern":"Hidden file access","snippet":"# rc 0: path ends in .md/.markdown, any case; rendered through /api/html, never a raw download.","category":"filesystem","line_end":103,"severity":"medium","line_start":103},{"id":"filesystem:scripts/brewpage-lib.sh:8:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"p=$(cd \"$1\" 2>/dev/null && pwd -P) || return 1","category":"filesystem","line_end":8,"severity":"low","line_start":8},{"id":"filesystem:scripts/brewpage-lib.sh:9:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"[ -n \"${HOME:-}\" ] && [ \"$p\" = \"$(cd \"$HOME\" 2>/dev/null && pwd -P)\" ] && return 0","category":"filesystem","line_end":9,"severity":"low","line_start":9},{"id":"filesystem:scripts/brewpage-lib.sh:10:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"[ -n \"${CLAUDE_CONFIG_DIR:-}\" ] && [ \"$p/.claude\" = \"$(cd \"$CLAUDE_CONFIG_DIR\" 2>/dev/null && pwd -P","category":"filesystem","line_end":10,"severity":"low","line_start":10},{"id":"filesystem:scripts/brewpage-lib.sh:21:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"root=$(git rev-parse --show-toplevel 2>/dev/null) || root=\"\"","category":"filesystem","line_end":21,"severity":"low","line_start":21},{"id":"filesystem:scripts/brewpage-lib.sh:54:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"command -v python3 >/dev/null || { echo 'FAILED: python3 required for secure history'; return 1; }","category":"filesystem","line_end":54,"severity":"low","line_start":54},{"id":"filesystem:scripts/brewpage-lib.sh:115:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"python3 -c 'import sys; open(sys.argv[1],\"rb\").read().decode(\"utf-8\")' \"$1\" 2>/dev/null","category":"filesystem","line_end":115,"severity":"low","line_start":115},{"id":"filesystem:scripts/brewpage-lib.sh:160:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"command -v jq >/dev/null || { echo \"FAILED: jq required\"; return 1; }","category":"filesystem","line_end":160,"severity":"low","line_start":160},{"id":"filesystem:scripts/brewpage-lib.sh:161:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"jq -ner --rawfile password \"$1\" \"$BP_PW_FILTER\" >/dev/null 2>&1 ||","category":"filesystem","line_end":161,"severity":"low","line_start":161},{"id":"filesystem:scripts/brewpage-lib.sh:178:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"command -v jq >/dev/null || { echo \"FAILED: jq required\"; return 1; }","category":"filesystem","line_end":178,"severity":"low","line_start":178},{"id":"filesystem:scripts/brewpage-lib.sh:190:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"(umask 077; jq -ner --rawfile password \"$password_file\" \"$BP_PW_FILTER\" > \"$BP_HEADER_FILE\") 2>/dev/","category":"filesystem","line_end":190,"severity":"low","line_start":190},{"id":"filesystem:scripts/brewpage-lib.sh:273:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"| \"HTTP \\(.status): \\((.message // .error // \"\") | tostring | explode | map(if . < 32 then 32 else .","category":"filesystem","line_end":273,"severity":"low","line_start":273},{"id":"filesystem:scripts/brewpage-lib.sh:302:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"url=$(printf '%s' \"$response\" | jq -r '.link | strings | select(test(\"^https://[^[:space:][:cntrl:]]","category":"filesystem","line_end":302,"severity":"low","line_start":302},{"id":"filesystem:scripts/brewpage-lib.sh:306:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"if [ -f \"$BP_RUN_DIR/http-status.txt\" ]; then status=$(cat \"$BP_RUN_DIR/http-status.txt\"); else stat","category":"filesystem","line_end":306,"severity":"low","line_start":306},{"id":"filesystem:scripts/brewpage-lib.sh:318:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"if printf '%s' \"$response\" | jq -e '.result.action == \"merged\" and .result.extras.isOwner == false' ","category":"filesystem","line_end":318,"severity":"low","line_start":318},{"id":"filesystem:scripts/brewpage-lib.sh:322:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"manage=$(printf '%s' \"$response\" | jq -r '.manageUrl | strings | explode | map(select(. > 32 and . !","category":"filesystem","line_end":322,"severity":"low","line_start":322},{"id":"filesystem:scripts/brewpage-lib.sh:327:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"receipt=$(printf '%s' \"$response\" | jq -c --rawfile proof \"${BP_OWNER_HEADER_FILE:-/dev/null}\" --arg","category":"filesystem","line_end":327,"severity":"low","line_start":327},{"id":"filesystem:scripts/brewpage-lib.sh:369:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"printf '%s' \"$response\" | jq -r --rawfile proof \"${BP_OWNER_HEADER_FILE:-/dev/null}\" '(.ownerToken /","category":"filesystem","line_end":369,"severity":"low","line_start":369},{"id":"filesystem:scripts/brewpage-lib.sh:373:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"(.customDomain? | select(type == \"object\") | {hostname,status,suspended,problem,nextStep,records,ser","category":"filesystem","line_end":373,"severity":"low","line_start":373},{"id":"filesystem:scripts/brewpage-lib.sh:121:temp-file-creation","file":"scripts/brewpage-lib.sh","pattern":"Temp file creation","snippet":"(umask 077; mktemp -d \"$BP_TMPDIR/brewpage.XXXXXX\")","category":"filesystem","line_end":121,"severity":"low","line_start":121},{"id":"obfuscation:scripts/brewpage-lib.sh:110:hex-encoded-characters","file":"scripts/brewpage-lib.sh","pattern":"Hex-encoded characters","snippet":"python3 -c 'import re,sys; sys.exit(0 if re.match(rb\"(?:\\xef\\xbb\\xbf)?\\s*<(?:!doctype\\s+html|html)(?","category":"obfuscation","line_end":110,"severity":"high","line_start":110},{"id":"blocker:scripts/brewpage-lib.sh:128:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"*) echo \"FAILED: invalid publish run id\"; return 1 ;;","category":"blocker","line_end":128,"severity":"low","line_start":128},{"id":"blocker:scripts/brewpage-lib.sh:130:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"case \"$id\" in *[!ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.]*) echo \"FAILED: in","category":"blocker","line_end":130,"severity":"low","line_start":130},{"id":"blocker:scripts/brewpage-lib.sh:153:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"then \"X-Password: \" + $p else error(\"invalid password\") end'","category":"blocker","line_end":153,"severity":"low","line_start":153},{"id":"blocker:scripts/brewpage-lib.sh:155:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"# {password_file} slot: absolute path to a readable non-symlink regular file with a valid password.","category":"blocker","line_end":155,"severity":"low","line_start":155},{"id":"blocker:scripts/brewpage-lib.sh:373:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"(.customDomain? | select(type == \"object\") | {hostname,status,suspended,problem,nextStep,records,ser","category":"blocker","line_end":373,"severity":"low","line_start":373},{"id":"blocker:scripts/brewpage-lib.sh:392:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"if not stat.S_ISREG(info.st_mode) or info.st_uid != os.getuid() or info.st_nlink != 1:","category":"blocker","line_end":392,"severity":"low","line_start":392},{"id":"external_commands:scripts/brewpage-run.sh:6:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"HERE=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\" && pwd)\"","category":"external_commands","line_end":6,"severity":"medium","line_start":6},{"id":"external_commands:scripts/brewpage-run.sh:27:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"BP_FRESH=$(bp_prepare) || die \"cannot allocate a private run directory\"","category":"external_commands","line_end":27,"severity":"medium","line_start":27},{"id":"external_commands:scripts/brewpage-run.sh:61:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"abs=$(cd \"$p\" && pwd -P)","category":"external_commands","line_end":61,"severity":"medium","line_start":61},{"id":"external_commands:scripts/brewpage-run.sh:63:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"html_files=$(cd \"$abs\" && find . -type f \\( -name '*.html' -o -name '*.htm' \\) | sed 's|^\\./||' | LC","category":"external_commands","line_end":63,"severity":"medium","line_start":63},{"id":"external_commands:scripts/brewpage-run.sh:66:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"entry=$(printf '%s\\n' \"$html_files\" | awk -F/ 'NF { print NF \"\\t\" $0 }' | LC_ALL=C sort -s -n -k1,1 ","category":"external_commands","line_end":66,"severity":"medium","line_start":66},{"id":"external_commands:scripts/brewpage-run.sh:69:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"\"$(find \"$abs\" -type f | wc -l | tr -d ' ')\" \"$(printf '%s' \"$html_files\" | grep -c . || true)\" \\","category":"external_commands","line_end":69,"severity":"medium","line_start":69},{"id":"external_commands:scripts/brewpage-run.sh:70:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"\"$(du -sk \"$abs\" | cut -f1)\" \"${entry:-none}\"","category":"external_commands","line_end":70,"severity":"medium","line_start":70},{"id":"external_commands:scripts/brewpage-run.sh:72:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"abs=\"$(cd \"$(dirname \"$p\")\" && pwd -P)/$(basename \"$p\")\"","category":"external_commands","line_end":72,"severity":"medium","line_start":72},{"id":"external_commands:scripts/brewpage-run.sh:78:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"printf 'TYPE: %s\\nPATH: %s\\nBYTES: %s\\nMIME: %s\\n' \"$type\" \"$abs\" \"$(wc -c < \"$abs\" | tr -d ' ')\" \\","category":"external_commands","line_end":78,"severity":"medium","line_start":78},{"id":"external_commands:scripts/brewpage-run.sh:79:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"\"$(file --mime-type -b -- \"$abs\" 2>/dev/null || echo unknown)\"","category":"external_commands","line_end":79,"severity":"medium","line_start":79},{"id":"external_commands:scripts/brewpage-run.sh:90:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"body=$(curl -q -s -A \"$BP_UA\" https://brewpage.app/api/limits) || die \"limits request failed\"","category":"external_commands","line_end":90,"severity":"medium","line_start":90},{"id":"external_commands:scripts/brewpage-run.sh:116:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"bytes=$(printf '%s' \"$text\" | python3 -I -S -c '","category":"external_commands","line_end":118,"severity":"medium","line_start":116},{"id":"external_commands:scripts/brewpage-run.sh:214:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"manifest=$(umask 077; node \"$HERE/publish.mjs\" pack --dir \"$path\" --out \"$CHECKED_PATH\" ${ENTRY:+--e","category":"external_commands","line_end":216,"severity":"medium","line_start":214},{"id":"external_commands:scripts/brewpage-run.sh:219:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"manifest=$(node \"$HERE/publish.mjs\" inspect --zip \"$CHECKED_PATH\" ${ENTRY:+--entry \"$ENTRY\"} \\","category":"external_commands","line_end":220,"severity":"medium","line_start":219},{"id":"external_commands:scripts/brewpage-run.sh:283:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"--text) need \"$#\" \"$1\"; text=\"$2\"; have_text=1; sources=$((sources + 1)); shift 2 ;;","category":"external_commands","line_end":283,"severity":"medium","line_start":283},{"id":"external_commands:scripts/brewpage-run.sh:284:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"--run) need \"$#\" \"$1\"; run=\"$2\"; sources=$((sources + 1)); shift 2 ;;","category":"external_commands","line_end":284,"severity":"medium","line_start":284},{"id":"external_commands:scripts/brewpage-run.sh:285:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"--path) need \"$#\" \"$1\"; path=\"$2\"; sources=$((sources + 1)); shift 2 ;;","category":"external_commands","line_end":285,"severity":"medium","line_start":285},{"id":"external_commands:scripts/brewpage-run.sh:338:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"state=$(printf '%s' \"$state\" | jq -cse 'if length == 1 and (.[0] | type) == \"object\" then .[0] else ","category":"external_commands","line_end":338,"severity":"medium","line_start":338},{"id":"external_commands:scripts/brewpage-run.sh:405:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"domain_limits=$(bp_request GET https://brewpage.app/api/limits) || die \"cannot verify selected profi","category":"external_commands","line_end":405,"severity":"medium","line_start":405},{"id":"external_commands:scripts/brewpage-run.sh:438:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"response=$(bp_request \"$method\" \"$endpoint\" -H \"Content-Type: application/json\" -d @\"$BP_RUN_DIR/pay","category":"external_commands","line_end":438,"severity":"medium","line_start":438},{"id":"external_commands:scripts/brewpage-run.sh:444:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"response=$(bp_request \"$method\" \"$endpoint\" -H \"Content-Type: application/json\" -d @\"$content\") || d","category":"external_commands","line_end":444,"severity":"medium","line_start":444},{"id":"external_commands:scripts/brewpage-run.sh:449:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"response=$(bp_request \"$method\" \"$endpoint\" -F \"$(form_file file \"$content\")\") || die \"$unknown\"","category":"external_commands","line_end":449,"severity":"medium","line_start":449},{"id":"external_commands:scripts/brewpage-run.sh:458:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"metadata=$(bp_request GET \"$endpoint\") || die \"cannot verify existing site entry; no replacement sen","category":"external_commands","line_end":458,"severity":"medium","line_start":458},{"id":"external_commands:scripts/brewpage-run.sh:459:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"ENTRY=$(printf '%s' \"$metadata\" | jq -er '.entryFile | strings | select(length > 0)' 2>/dev/null) ||","category":"external_commands","line_end":459,"severity":"medium","line_start":459},{"id":"external_commands:scripts/brewpage-run.sh:463:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"endpoint=\"$endpoint${separator}entry=$(jq -nr --arg e \"$ENTRY\" '$e | @uri')\"","category":"external_commands","line_end":463,"severity":"medium","line_start":463},{"id":"external_commands:scripts/brewpage-run.sh:465:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"response=$(bp_request \"$method\" \"$endpoint\" -F \"$(form_file archive \"$CHECKED_PATH\")\" ${state:+--for","category":"external_commands","line_end":465,"severity":"medium","line_start":465},{"id":"network:scripts/brewpage-run.sh:90:hardcoded-url","file":"scripts/brewpage-run.sh","pattern":"Hardcoded URL","snippet":"body=$(curl -q -s -A \"$BP_UA\" https://brewpage.app/api/limits) || die \"limits request failed\"","category":"network","line_end":90,"severity":"low","line_start":90},{"id":"network:scripts/brewpage-run.sh:405:hardcoded-url","file":"scripts/brewpage-run.sh","pattern":"Hardcoded URL","snippet":"domain_limits=$(bp_request GET https://brewpage.app/api/limits) || die \"cannot verify selected profi","category":"network","line_end":405,"severity":"low","line_start":405},{"id":"network:scripts/brewpage-run.sh:416:hardcoded-url","file":"scripts/brewpage-run.sh","pattern":"Hardcoded URL","snippet":"case \"$BP_OWNER_API\" in https://brewpage.app/api/\"$kind\"/*) : ;; *) die \"replacement type must match","category":"network","line_end":416,"severity":"low","line_start":416},{"id":"network:scripts/brewpage-run.sh:418:hardcoded-url","file":"scripts/brewpage-run.sh","pattern":"Hardcoded URL","snippet":"case \"$BP_OWNER_API\" in https://brewpage.app/api/\"$kind/$ns\"/*) : ;; *) die \"--ns must match the tar","category":"network","line_end":418,"severity":"low","line_start":418},{"id":"network:scripts/brewpage-run.sh:422:hardcoded-url","file":"scripts/brewpage-run.sh","pattern":"Hardcoded URL","snippet":"endpoint=\"https://brewpage.app/api/$kind?ns=$NS&ttl=$DAYS\"","category":"network","line_end":422,"severity":"low","line_start":422},{"id":"filesystem:scripts/brewpage-run.sh:312:hidden-file-access","file":"scripts/brewpage-run.sh","pattern":"Hidden file access","snippet":"# A .html/.htm or markdown path is a page whichever of these a caller names.","category":"filesystem","line_end":312,"severity":"medium","line_start":312},{"id":"filesystem:scripts/brewpage-run.sh:79:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"\"$(file --mime-type -b -- \"$abs\" 2>/dev/null || echo unknown)\"","category":"filesystem","line_end":79,"severity":"low","line_start":79},{"id":"filesystem:scripts/brewpage-run.sh:88:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"command -v jq >/dev/null || die \"jq required\"","category":"filesystem","line_end":88,"severity":"low","line_start":88},{"id":"filesystem:scripts/brewpage-run.sh:94:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"\"PATH_MAX_CHARS: \\($s.maxPathChars)\", \"PATH_MAX_BYTES: \\($s.maxPathBytes)\", \"NAME_MAX_BYTES: \\($s.ma","category":"filesystem","line_end":94,"severity":"low","line_start":94},{"id":"filesystem:scripts/brewpage-run.sh:129:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"' \"$file\" 2>/dev/null) || die \"staged content destination is unsafe\"","category":"filesystem","line_end":129,"severity":"low","line_start":129},{"id":"filesystem:scripts/brewpage-run.sh:300:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"command -v python3 >/dev/null || die \"python3 required for secure history\"","category":"filesystem","line_end":300,"severity":"low","line_start":300},{"id":"filesystem:scripts/brewpage-run.sh:338:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"state=$(printf '%s' \"$state\" | jq -cse 'if length == 1 and (.[0] | type) == \"object\" then .[0] else ","category":"filesystem","line_end":338,"severity":"low","line_start":338},{"id":"filesystem:scripts/brewpage-run.sh:406:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"printf '%s' \"$domain_limits\" | jq -e '.reach == \"profile\" and .customDomains.enabled == true and (.c","category":"filesystem","line_end":406,"severity":"low","line_start":406},{"id":"filesystem:scripts/brewpage-run.sh:442:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"jq empty \"$content\" 2>/dev/null || die \"payload is not valid JSON\"","category":"filesystem","line_end":442,"severity":"low","line_start":442},{"id":"filesystem:scripts/brewpage-run.sh:459:standard-device-file-access","file":"scripts/brewpage-run.sh","pattern":"Standard device file access","snippet":"ENTRY=$(printf '%s' \"$metadata\" | jq -er '.entryFile | strings | select(length > 0)' 2>/dev/null) ||","category":"filesystem","line_end":459,"severity":"low","line_start":459},{"id":"filesystem:scripts/brewpage-run.sh:119:python-file-write-append","file":"scripts/brewpage-run.sh","pattern":"Python file write/append","snippet":"with os.fdopen(fd, \"ab\") as target:","category":"filesystem","line_end":119,"severity":"medium","line_start":119},{"id":"filesystem:scripts/brewpage-run.sh:460:python-archive-libraries","file":"scripts/brewpage-run.sh","pattern":"Python archive libraries","snippet":"python3 -I -S -c 'import sys,zipfile; p=sys.argv[2]; safe=not p.startswith(\"/\") and not any(s in (\"\"","category":"filesystem","line_end":460,"severity":"medium","line_start":460},{"id":"blocker:scripts/brewpage-run.sh:122:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"if not stat.S_ISREG(info.st_mode) or info.st_uid != os.getuid() or info.st_nlink != 1 or stat.S_IMOD","category":"blocker","line_end":122,"severity":"low","line_start":122},{"id":"blocker:scripts/brewpage-run.sh:189:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"echo 'RECORDED: external operator attestation; helper did not authenticate the source or perform a r","category":"blocker","line_end":189,"severity":"low","line_start":189},{"id":"blocker:scripts/brewpage-run.sh:325:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"python3 -I -S -c 'import re,sys; s=sys.argv[1]; sys.exit(0 if len(s)<=253 and \".\" in s and all(re.fu","category":"blocker","line_end":325,"severity":"low","line_start":325},{"id":"blocker:scripts/brewpage-run.sh:342:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"local id pwmode=none","category":"blocker","line_end":342,"severity":"low","line_start":342},{"id":"blocker:scripts/brewpage-run.sh:360:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"[ -f \"$content\" ] || die \"run $id has no staged text\"","category":"blocker","line_end":360,"severity":"low","line_start":360},{"id":"blocker:scripts/brewpage-run.sh:442:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"jq empty \"$content\" 2>/dev/null || die \"payload is not valid JSON\"","category":"blocker","line_end":442,"severity":"low","line_start":442},{"id":"blocker:scripts/brewpage-run.sh:460:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"python3 -I -S -c 'import sys,zipfile; p=sys.argv[2]; safe=not p.startswith(\"/\") and not any(s in (\"\"","category":"blocker","line_end":460,"severity":"low","line_start":460},{"id":"external_commands:scripts/history.py:76:python-subprocess-run","file":"scripts/history.py","pattern":"Python subprocess.run","snippet":"result = subprocess.run(['git', '-C', root] + arguments, stdout=subprocess.PIPE, stderr=subprocess.P","category":"external_commands","line_end":76,"severity":"high","line_start":76},{"id":"external_commands:scripts/history.py:136:ruby-shell-backtick-execution","file":"scripts/history.py","pattern":"Ruby/shell backtick execution","snippet":"cells = json.loads(parts[6].strip('`')) if parts[6].strip('`') else {}","category":"external_commands","line_end":136,"severity":"medium","line_start":136},{"id":"external_commands:scripts/history.py:145:ruby-shell-backtick-execution","file":"scripts/history.py","pattern":"Ruby/shell backtick execution","snippet":"token = parts[2].strip('`')","category":"external_commands","line_end":239,"severity":"medium","line_start":145},{"id":"external_commands:scripts/history.py:248:ruby-shell-backtick-execution","file":"scripts/history.py","pattern":"Ruby/shell backtick execution","snippet":"return f'| {now} | [{reader}]({reader}) | `{token}` | — | {kind} | {target} | `{identity}` |\\n'.enco","category":"external_commands","line_end":248,"severity":"medium","line_start":248},{"id":"network:scripts/history.py:295:python-http-libraries","file":"scripts/history.py","pattern":"Python HTTP libraries","snippet":"record = requests.get(operation, {})","category":"network","line_end":295,"severity":"low","line_start":295},{"id":"network:scripts/history.py:25:hardcoded-url","file":"scripts/history.py","pattern":"Hardcoded URL","snippet":"OWNER_ORIGIN = 'https://brewpage.app'","category":"network","line_end":25,"severity":"low","line_start":25},{"id":"network:scripts/history.py:122:hardcoded-url","file":"scripts/history.py","pattern":"Hardcoded URL","snippet":"reader = re.fullmatch(r'\\[(https://[^\\]\\s]+)\\]\\(\\1\\)', parts[1])","category":"network","line_end":122,"severity":"low","line_start":122},{"id":"network:scripts/history.py:239:hardcoded-url","file":"scripts/history.py","pattern":"Hardcoded URL","snippet":"if api is None or not isinstance(reader, str) or not re.fullmatch(r'https://[^\\s\\x00-\\x20\\x7f|`\\[\\]]","category":"network","line_end":239,"severity":"low","line_start":239},{"id":"filesystem:scripts/history.py:492:path-traversal-sequence","file":"scripts/history.py","pattern":"Path traversal sequence","snippet":"if git_repo and not selected.startswith('../') and (git(root, ['ls-files', '--error-unmatch', '--', ","category":"filesystem","line_end":492,"severity":"high","line_start":492},{"id":"filesystem:scripts/history.py:52:python-file-write-append","file":"scripts/history.py","pattern":"Python file write/append","snippet":"with os.fdopen(fd, 'wb') as output:","category":"filesystem","line_end":52,"severity":"medium","line_start":52},{"id":"filesystem:scripts/history.py:207:python-file-write-append","file":"scripts/history.py","pattern":"Python file write/append","snippet":"with os.fdopen(fd, 'w', encoding='ascii') as header:","category":"filesystem","line_end":207,"severity":"medium","line_start":207},{"id":"filesystem:scripts/history.py:60:python-os-file-operations","file":"scripts/history.py","pattern":"Python os file operations","snippet":"os.unlink(temporary, dir_fd=directory)","category":"filesystem","line_end":60,"severity":"medium","line_start":60},{"id":"filesystem:scripts/history.py:528:python-os-file-operations","file":"scripts/history.py","pattern":"Python os file operations","snippet":"os.unlink('brewpage-recovery.json', dir_fd=parent)","category":"filesystem","line_end":528,"severity":"medium","line_start":528},{"id":"env_access:scripts/history.py:76:python-environment-access","file":"scripts/history.py","pattern":"Python environment access","snippet":"result = subprocess.run(['git', '-C', root] + arguments, stdout=subprocess.PIPE, stderr=subprocess.P","category":"env_access","line_end":76,"severity":"low","line_start":76},{"id":"env_access:scripts/history.py:86:python-environment-access","file":"scripts/history.py","pattern":"Python environment access","snippet":"if os.path.lexists(os.path.join(parent, '.git')) or os.environ.get('GIT_DIR'):","category":"env_access","line_end":86,"severity":"low","line_start":86},{"id":"env_access:scripts/history.py:101:python-environment-access","file":"scripts/history.py","pattern":"Python environment access","snippet":"inherited = os.environ.get('BREWPAGE_HISTORY_LOCK_FD')","category":"env_access","line_end":101,"severity":"low","line_start":101},{"id":"env_access:scripts/history.py:466:python-environment-access","file":"scripts/history.py","pattern":"Python environment access","snippet":"operation = os.environ.get('BREWPAGE_OPERATION_ID', '')","category":"env_access","line_end":466,"severity":"low","line_start":466},{"id":"obfuscation:scripts/history.py:239:hex-encoded-characters","file":"scripts/history.py","pattern":"Hex-encoded characters","snippet":"if api is None or not isinstance(reader, str) or not re.fullmatch(r'https://[^\\s\\x00-\\x20\\x7f|`\\[\\]]","category":"obfuscation","line_end":239,"severity":"high","line_start":239},{"id":"blocker:scripts/history.py:38:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if not stat.S_ISREG(info.st_mode) or info.st_uid != os.getuid() or info.st_nlink != 1:","category":"blocker","line_end":38,"severity":"low","line_start":38},{"id":"blocker:scripts/history.py:127:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if not parsed.hostname or parsed.username is not None or parsed.fragment or parsed.port not in (None","category":"blocker","line_end":127,"severity":"low","line_start":127},{"id":"blocker:scripts/history.py:143:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"elif not (parsed.hostname == 'brewpage.app' or parsed.hostname.endswith('.brewpage.app')):","category":"blocker","line_end":143,"severity":"low","line_start":143},{"id":"blocker:scripts/history.py:174:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('owner token file must contain one valid BrewPage owner token')","category":"blocker","line_end":174,"severity":"low","line_start":174},{"id":"blocker:scripts/history.py:234:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('owner receipt has false or invalid ownership confirmation')","category":"blocker","line_end":234,"severity":"low","line_start":234},{"id":"blocker:scripts/history.py:243:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('owner receipt has invalid proof or conflicting target identity')","category":"blocker","line_end":243,"severity":"low","line_start":243},{"id":"blocker:scripts/history.py:357:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid history operation or destination')","category":"blocker","line_end":357,"severity":"low","line_start":357},{"id":"blocker:scripts/history.py:365:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if info.st_uid != os.getuid() or info.st_mode & 0o022:","category":"blocker","line_end":365,"severity":"low","line_start":365},{"id":"blocker:scripts/history.py:382:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid owner recovery receipt')","category":"blocker","line_end":382,"severity":"low","line_start":382},{"id":"blocker:scripts/history.py:419:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if info.st_uid != os.getuid() or info.st_mode & 0o022:","category":"blocker","line_end":419,"severity":"low","line_start":419},{"id":"blocker:scripts/history.py:437:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid protected recovery receipt')","category":"blocker","line_end":437,"severity":"low","line_start":437},{"id":"blocker:scripts/history.py:473:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('local receipt has an invalid operation reference')","category":"blocker","line_end":473,"severity":"low","line_start":473},{"id":"blocker:scripts/history.py:497:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid protected recovery receipt')","category":"blocker","line_end":497,"severity":"low","line_start":497},{"id":"blocker:scripts/history.py:515:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('receipt did not identify an official publication and reusable owner token')","category":"blocker","line_end":515,"severity":"low","line_start":515},{"id":"blocker:scripts/history.py:526:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('history readback did not match the saved data')","category":"blocker","line_end":526,"severity":"low","line_start":526},{"id":"external_commands:scripts/publish.mjs:4:node-js-child-process-module","file":"scripts/publish.mjs","pattern":"Node.js child_process module","snippet":"import { spawn, spawnSync } from 'node:child_process';","category":"external_commands","line_end":4,"severity":"high","line_start":4},{"id":"external_commands:scripts/publish.mjs:391:process-spawn","file":"scripts/publish.mjs","pattern":"Process spawn","snippet":"const child = spawn(bin, argv, { cwd: options.cwd, stdio: ['pipe', 'ignore', 'ignore'] });","category":"external_commands","line_end":391,"severity":"high","line_start":391},{"id":"external_commands:scripts/publish.mjs:318:synchronous-spawn","file":"scripts/publish.mjs","pattern":"Synchronous spawn","snippet":"const r = spawnSync('unzip', [flag, zipPath], { encoding: 'utf8', maxBuffer: LIST_MAX_BUFFER, timeou","category":"external_commands","line_end":318,"severity":"high","line_start":318},{"id":"external_commands:scripts/publish.mjs:452:synchronous-spawn","file":"scripts/publish.mjs","pattern":"Synchronous spawn","snippet":"const encoded = spawnSync('python3', ['-I', '-S', '-c', MCP_FILES, out, args['mcp-out']], { stdio: '","category":"external_commands","line_end":452,"severity":"high","line_start":452},{"id":"external_commands:scripts/publish.mjs:489:synchronous-spawn","file":"scripts/publish.mjs","pattern":"Synchronous spawn","snippet":"const copied = spawnSync('python3', ['-I', '-S', '-c', FILE_SNAPSHOT, source, args.out, String(info.","category":"external_commands","line_end":489,"severity":"high","line_start":489},{"id":"external_commands:scripts/publish.mjs:2:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"/** Offline SITE bundle build/verify: `pack --dir <abs-dir> --out <abs.zip> [--entry <name>]` | `ins","category":"external_commands","line_end":2,"severity":"medium","line_start":2},{"id":"external_commands:scripts/publish.mjs:33:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"/** True when a dot-named segment, outside the root `.well-known/`, keeps the path out of a site. */","category":"external_commands","line_end":33,"severity":"medium","line_start":33},{"id":"external_commands:scripts/publish.mjs:36:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"/** Extension-less files ship only inside the root `.well-known/` (e.g. `apple-app-site-association`","category":"external_commands","line_end":36,"severity":"medium","line_start":36},{"id":"external_commands:scripts/publish.mjs:37:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"const isWellKnownBare = (rel) => rel.startsWith(`${TRUSTED_DOT_DIR}/`) && extname(rel) === '';","category":"external_commands","line_end":37,"severity":"medium","line_start":37},{"id":"external_commands:scripts/publish.mjs:49:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"return `${info.dev}/${info.ino}`;","category":"external_commands","line_end":49,"severity":"medium","line_start":49},{"id":"external_commands:scripts/publish.mjs:54:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"identity: (info) => identities.has(`${info.dev}/${info.ino}`),","category":"external_commands","line_end":54,"severity":"medium","line_start":54},{"id":"external_commands:scripts/publish.mjs:60:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"/** `unzip` stdout cap: Node's 1 MB default kills `-Z1` on a valid site with >1 MB of names (ENOBUFS","category":"external_commands","line_end":60,"severity":"medium","line_start":60},{"id":"external_commands:scripts/publish.mjs:65:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"const SNAPSHOT = String.raw`","category":"external_commands","line_end":122,"severity":"medium","line_start":65},{"id":"external_commands:scripts/publish.mjs:124:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"const FILE_SNAPSHOT = String.raw`","category":"external_commands","line_end":149,"severity":"medium","line_start":124},{"id":"external_commands:scripts/publish.mjs:151:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"const MCP_FILES = String.raw`","category":"external_commands","line_end":173,"severity":"medium","line_start":151},{"id":"external_commands:scripts/publish.mjs:231:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`FAILED: ${msg}`);","category":"external_commands","line_end":231,"severity":"medium","line_start":231},{"id":"external_commands:scripts/publish.mjs:241:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (!k.startsWith('--') || v === undefined) die(`bad argument near \"${k}\"`);","category":"external_commands","line_end":241,"severity":"medium","line_start":241},{"id":"external_commands:scripts/publish.mjs:251:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"die(`entry \"${entry}\" is not a plain relative file name`);","category":"external_commands","line_end":251,"severity":"medium","line_start":251},{"id":"external_commands:scripts/publish.mjs:285:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (!names.includes(requested)) die(`entry \"${requested}\" is not in the archive`);","category":"external_commands","line_end":285,"severity":"medium","line_start":285},{"id":"external_commands:scripts/publish.mjs:297:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"/** True when `p` is an executable regular file. */","category":"external_commands","line_end":297,"severity":"medium","line_start":297},{"id":"external_commands:scripts/publish.mjs:306:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (!dirs.some((dir) => exts.some((ext) => isExecutable(join(dir, bin + ext))))) die(`${bin} require","category":"external_commands","line_end":306,"severity":"medium","line_start":306},{"id":"external_commands:scripts/publish.mjs:311:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (r.status !== 0 && r.status !== null) return `${bin} exited ${r.status}`;","category":"external_commands","line_end":311,"severity":"medium","line_start":311},{"id":"external_commands:scripts/publish.mjs:312:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (r.error) return `${bin} failed (${r.error.code || r.error.message})`;","category":"external_commands","line_end":312,"severity":"medium","line_start":312},{"id":"external_commands:scripts/publish.mjs:313:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"return r.signal ? `${bin} killed by ${r.signal}` : '';","category":"external_commands","line_end":313,"severity":"medium","line_start":313},{"id":"external_commands:scripts/publish.mjs:316:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"/** One `unzip` run: { out }, or { why } telling a bad archive (non-zero exit) from a check that nev","category":"external_commands","line_end":316,"severity":"medium","line_start":316},{"id":"external_commands:scripts/publish.mjs:321:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"return why ? { why: `archive could not be checked: ${why}` } : { out: r.stdout || '' };","category":"external_commands","line_end":321,"severity":"medium","line_start":321},{"id":"external_commands:scripts/publish.mjs:324:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"/** `unzip -tq` then `unzip -Z1`: { names } sorted, directory entries dropped, or { why }. */","category":"external_commands","line_end":324,"severity":"medium","line_start":324},{"id":"external_commands:scripts/publish.mjs:339:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`ARCHIVE MANIFEST — ${basename(zipPath)}`);","category":"external_commands","line_end":339,"severity":"medium","line_start":339},{"id":"external_commands:scripts/publish.mjs:340:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"for (const n of names) console.log(`  ${n}`);","category":"external_commands","line_end":340,"severity":"medium","line_start":340},{"id":"external_commands:scripts/publish.mjs:341:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`FILES: ${names.length}`);","category":"external_commands","line_end":341,"severity":"medium","line_start":341},{"id":"external_commands:scripts/publish.mjs:342:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`BYTES: ${bytes}`);","category":"external_commands","line_end":342,"severity":"medium","line_start":342},{"id":"external_commands:scripts/publish.mjs:343:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`ENTRY: ${entry}`);","category":"external_commands","line_end":343,"severity":"medium","line_start":343},{"id":"external_commands:scripts/publish.mjs:344:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"const skippedSummary = [...skipped, ...(protectedSkipped ? [`${protectedSkipped} protected credentia","category":"external_commands","line_end":344,"severity":"medium","line_start":344},{"id":"external_commands:scripts/publish.mjs:345:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`SKIPPED: ${skipped.length + protectedSkipped}${skippedSummary.length ? ` (${skippedSumm","category":"external_commands","line_end":345,"severity":"medium","line_start":345},{"id":"external_commands:scripts/publish.mjs:346:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (unexpected.length) console.log(`UNEXPECTED: ${unexpected.join(', ')}`);","category":"external_commands","line_end":346,"severity":"medium","line_start":346},{"id":"external_commands:scripts/publish.mjs:348:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (flagged.length) console.log(`SENSITIVE: ${flagged.join(', ')}`);","category":"external_commands","line_end":348,"severity":"medium","line_start":348},{"id":"external_commands:scripts/publish.mjs:350:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`RESULT: ${confirm ? 'confirm' : 'ok'}`);","category":"external_commands","line_end":350,"severity":"medium","line_start":350},{"id":"external_commands:scripts/publish.mjs:359:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (!existsSync(dir) || !statSync(dir).isDirectory()) die(`not a directory: ${dir}`);","category":"external_commands","line_end":359,"severity":"medium","line_start":359},{"id":"external_commands:scripts/publish.mjs:371:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (kept.length === 0) die(`no publishable files under ${dir} after the allowlist filter`);","category":"external_commands","line_end":371,"severity":"medium","line_start":371},{"id":"external_commands:scripts/publish.mjs:374:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"// BD-N03: `mktemp` leaves a 0-byte file that Info-ZIP reads as a corrupt","category":"external_commands","line_end":374,"severity":"medium","line_start":374},{"id":"external_commands:scripts/publish.mjs:422:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"cwd: snapshot, input: `${kept.join('\\n')}\\n`, encoding: 'utf8',","category":"external_commands","line_end":422,"severity":"medium","line_start":422},{"id":"external_commands:scripts/publish.mjs:431:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (interrupted) die(`pack interrupted (${interrupted})`);","category":"external_commands","line_end":431,"severity":"medium","line_start":431},{"id":"external_commands:scripts/publish.mjs:437:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"die(`${zipWhy} — no archive produced`);","category":"external_commands","line_end":437,"severity":"medium","line_start":437},{"id":"external_commands:scripts/publish.mjs:449:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"die(`archive contents differ from the selected file set (in archive: ${listed.length}, selected: ${k","category":"external_commands","line_end":449,"severity":"medium","line_start":449},{"id":"external_commands:scripts/publish.mjs:461:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"if (!existsSync(zipPath) || !statSync(zipPath).isFile()) die(`not a file: ${zipPath}`);","category":"external_commands","line_end":461,"severity":"medium","line_start":461},{"id":"filesystem:scripts/publish.mjs:5:synchronous-file-operations","file":"scripts/publish.mjs","pattern":"Synchronous file operations","snippet":"import { readdirSync, statSync, lstatSync, existsSync, rmSync, accessSync, constants, readFileSync, ","category":"filesystem","line_end":5,"severity":"medium","line_start":5},{"id":"filesystem:scripts/publish.mjs:178:synchronous-file-operations","file":"scripts/publish.mjs","pattern":"Synchronous file operations","snippet":"const data = readFileSync(zipPath);","category":"filesystem","line_end":178,"severity":"medium","line_start":178},{"id":"filesystem:scripts/publish.mjs:274:hidden-file-access","file":"scripts/publish.mjs","pattern":"Hidden file access","snippet":"if (/[\\r\\n]/.test(rel)) { skipped.push(rel); continue; }","category":"filesystem","line_end":274,"severity":"medium","line_start":274},{"id":"filesystem:scripts/publish.mjs:5:temp-file-creation","file":"scripts/publish.mjs","pattern":"Temp file creation","snippet":"import { readdirSync, statSync, lstatSync, existsSync, rmSync, accessSync, constants, readFileSync, ","category":"filesystem","line_end":5,"severity":"low","line_start":5},{"id":"filesystem:scripts/publish.mjs:374:temp-file-creation","file":"scripts/publish.mjs","pattern":"Temp file creation","snippet":"// BD-N03: `mktemp` leaves a 0-byte file that Info-ZIP reads as a corrupt","category":"filesystem","line_end":374,"severity":"low","line_start":374},{"id":"filesystem:scripts/publish.mjs:415:temp-file-creation","file":"scripts/publish.mjs","pattern":"Temp file creation","snippet":"snapshot = mkdtempSync(join(tmpdir(), 'brewpage-pack-'));","category":"filesystem","line_end":415,"severity":"low","line_start":415},{"id":"filesystem:scripts/publish.mjs:103:python-file-write-append","file":"scripts/publish.mjs","pattern":"Python file write/append","snippet":"with os.fdopen(output, 'wb') as dest:","category":"filesystem","line_end":103,"severity":"medium","line_start":103},{"id":"filesystem:scripts/publish.mjs:167:python-file-write-append","file":"scripts/publish.mjs","pattern":"Python file write/append","snippet":"with os.fdopen(fd, 'w', encoding='utf-8') as output:","category":"filesystem","line_end":167,"severity":"medium","line_start":167},{"id":"filesystem:scripts/publish.mjs:146:python-shutil-operations","file":"scripts/publish.mjs","pattern":"Python shutil operations","snippet":"shutil.copyfileobj(incoming, outgoing)","category":"filesystem","line_end":146,"severity":"medium","line_start":146},{"id":"filesystem:scripts/publish.mjs:101:python-os-file-operations","file":"scripts/publish.mjs","pattern":"Python os file operations","snippet":"os.makedirs(os.path.dirname(target), mode=0o700, exist_ok=True)","category":"filesystem","line_end":101,"severity":"medium","line_start":101},{"id":"filesystem:scripts/publish.mjs:152:python-archive-libraries","file":"scripts/publish.mjs","pattern":"Python archive libraries","snippet":"import json, os, sys, zipfile","category":"filesystem","line_end":152,"severity":"medium","line_start":152},{"id":"filesystem:scripts/publish.mjs:154:python-archive-libraries","file":"scripts/publish.mjs","pattern":"Python archive libraries","snippet":"with zipfile.ZipFile(sys.argv[1]) as archive:","category":"filesystem","line_end":154,"severity":"medium","line_start":154},{"id":"filesystem:scripts/publish.mjs:171:python-archive-libraries","file":"scripts/publish.mjs","pattern":"Python archive libraries","snippet":"except (OSError, ValueError, zipfile.BadZipFile):","category":"filesystem","line_end":171,"severity":"medium","line_start":171},{"id":"env_access:scripts/publish.mjs:304:environment-variable-access-dot-notation","file":"scripts/publish.mjs","pattern":"Environment variable access (dot notation)","snippet":"const exts = process.platform === 'win32' ? ['', ...(process.env.PATHEXT || '.EXE;.CMD;.BAT').split(","category":"env_access","line_end":304,"severity":"low","line_start":304},{"id":"env_access:scripts/publish.mjs:305:environment-variable-access-dot-notation","file":"scripts/publish.mjs","pattern":"Environment variable access (dot notation)","snippet":"const dirs = (process.env.PATH || '').split(delimiter).filter(Boolean);","category":"env_access","line_end":305,"severity":"low","line_start":305},{"id":"env_access:scripts/publish.mjs:304:environment-variable-object","file":"scripts/publish.mjs","pattern":"Environment variable object","snippet":"const exts = process.platform === 'win32' ? ['', ...(process.env.PATHEXT || '.EXE;.CMD;.BAT').split(","category":"env_access","line_end":304,"severity":"low","line_start":304},{"id":"env_access:scripts/publish.mjs:305:environment-variable-object","file":"scripts/publish.mjs","pattern":"Environment variable object","snippet":"const dirs = (process.env.PATH || '').split(delimiter).filter(Boolean);","category":"env_access","line_end":305,"severity":"low","line_start":305},{"id":"obfuscation:scripts/publish.mjs:163:hex-encoded-characters","file":"scripts/publish.mjs","pattern":"Hex-encoded characters","snippet":"if '\\x00' in content:","category":"obfuscation","line_end":163,"severity":"high","line_start":163},{"id":"sensitive:scripts/publish.mjs:40:ssh-private-key-file","file":"scripts/publish.mjs","pattern":"SSH private key file","snippet":"const SENSITIVE_RE = /(^|\\/)(\\.env|id_rsa|id_ed25519)|secret|credential|password|token|\\.(pem|key|p1","category":"sensitive","line_end":40,"severity":"critical","line_start":40},{"id":"sensitive:scripts/publish.mjs:40:environment-file-access","file":"scripts/publish.mjs","pattern":"Environment file access","snippet":"const SENSITIVE_RE = /(^|\\/)(\\.env|id_rsa|id_ed25519)|secret|credential|password|token|\\.(pem|key|p1","category":"sensitive","line_end":40,"severity":"high","line_start":40},{"id":"sensitive:scripts/publish.mjs:41:environment-file-access","file":"scripts/publish.mjs","pattern":"Environment file access","snippet":"const RESERVED_RE = /^(?:\\.env(?:\\..*)?|\\.brewpage-(?:[a-f0-9]{24}|owner.*)|id_(?:rsa|ed25519)|brewp","category":"sensitive","line_end":41,"severity":"high","line_start":41},{"id":"sensitive:scripts/publish.mjs:304:environment-file-access","file":"scripts/publish.mjs","pattern":"Environment file access","snippet":"const exts = process.platform === 'win32' ? ['', ...(process.env.PATHEXT || '.EXE;.CMD;.BAT').split(","category":"sensitive","line_end":304,"severity":"high","line_start":304},{"id":"sensitive:scripts/publish.mjs:305:environment-file-access","file":"scripts/publish.mjs","pattern":"Environment file access","snippet":"const dirs = (process.env.PATH || '').split(delimiter).filter(Boolean);","category":"sensitive","line_end":305,"severity":"high","line_start":305},{"id":"sensitive:scripts/publish.mjs:31:sqlite-database-file","file":"scripts/publish.mjs","pattern":"SQLite database file","snippet":"const SYSTEM_RE = /^(__MACOSX|\\.Spotlight-V100|\\.Trashes|\\.fseventsd)\\/|(^|\\/)(\\.DS_Store|Thumbs\\.db","category":"sensitive","line_end":31,"severity":"medium","line_start":31},{"id":"blocker:scripts/publish.mjs:60:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"/** `unzip` stdout cap: Node's 1 MB default kills `-Z1` on a valid site with >1 MB of names (ENOBUFS","category":"blocker","line_end":60,"severity":"low","line_start":60},{"id":"blocker:scripts/publish.mjs:88:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"raise ValueError('invalid member')","category":"blocker","line_end":88,"severity":"low","line_start":88},{"id":"blocker:scripts/publish.mjs:99:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"raise ValueError('invalid source file')","category":"blocker","line_end":99,"severity":"low","line_start":99},{"id":"blocker:scripts/publish.mjs:139:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"if staged == 'yes' and (info.st_uid != os.getuid() or stat.S_IMODE(info.st_mode) != 0o600):","category":"blocker","line_end":139,"severity":"low","line_start":139},{"id":"blocker:scripts/publish.mjs:142:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"if staged == 'yes' and (parent.st_uid != os.getuid() or stat.S_IMODE(parent.st_mode) != 0o700):","category":"blocker","line_end":142,"severity":"low","line_start":142},{"id":"blocker:scripts/publish.mjs:182:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"if (end < floor) return 'archive has no valid central directory';","category":"blocker","line_end":182,"severity":"low","line_start":182},{"id":"blocker:scripts/publish.mjs:486:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"if (staged && (info.uid !== BigInt(process.getuid()) || (info.mode & 0o777n) !== 0o600n)) die('stage","category":"blocker","line_end":486,"severity":"low","line_start":486},{"id":"external_commands:SKILL.md:10:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"`$ARGUMENTS` is one free-form RU/EN prompt. Keep supplied material intact and resolve selected paths","category":"external_commands","line_end":10,"severity":"medium","line_start":10},{"id":"external_commands:SKILL.md:16:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"| `draft` | prepare a draft, preview, local only | пoдгotobь чephobиk, пpeдпpocmotp, toльko лokaльho","category":"external_commands","line_end":16,"severity":"medium","line_start":16},{"id":"external_commands:SKILL.md:17:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"| `publish` | publish this, share as a link, upload this | oпyблиkyй эto, пoдeлиcь ccылkoй, зaгpyзи ","category":"external_commands","line_end":17,"severity":"medium","line_start":17},{"id":"external_commands:SKILL.md:18:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"| `compose-and-publish` | create and publish, build and host | coздaй и oпyблиkyй, cдeлaй и paзmectи","category":"external_commands","line_end":18,"severity":"medium","line_start":18},{"id":"external_commands:SKILL.md:19:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"| `update` | update this publication, replace the page, edit in place | oбhobи пyблиkaцию, зamehи ct","category":"external_commands","line_end":19,"severity":"medium","line_start":19},{"id":"external_commands:SKILL.md:21:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"1. Mode: separate flags from the request. An affirmatively requested explicit mode wins. Otherwise s","category":"external_commands","line_end":21,"severity":"medium","line_start":21},{"id":"external_commands:SKILL.md:27:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"```text","category":"external_commands","line_end":34,"severity":"medium","line_start":27},{"id":"external_commands:SKILL.md:34:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"```","category":"external_commands","line_end":39,"severity":"medium","line_start":34},{"id":"external_commands:SKILL.md:39:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"2. **Publish or compose and publish:** preserve supplied content and exact requested text, including","category":"external_commands","line_end":39,"severity":"medium","line_start":39},{"id":"external_commands:SKILL.md:40:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"3. **Update:** use the exact target and selected owner; inventory only for unknown targets. MCP: a t","category":"external_commands","line_end":40,"severity":"medium","line_start":40},{"id":"external_commands:SKILL.md:44:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"Before dispatching MCP that can return an owner key or bearer management link, verify that the tool ","category":"external_commands","line_end":44,"severity":"medium","line_start":44},{"id":"external_commands:SKILL.md:46:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"- Prefer a BrewPage tool already exposed to this host session. If the host discovers tools on demand","category":"external_commands","line_end":46,"severity":"medium","line_start":46},{"id":"external_commands:SKILL.md:48:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"- Prefer a suitable already connected account when no other owner is chosen. For explicit account pu","category":"external_commands","line_end":48,"severity":"medium","line_start":48},{"id":"external_commands:SKILL.md:51:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"For the bundled runner, substitute this installed path for `{runner}` in the publishing reference. U","category":"external_commands","line_end":53,"severity":"medium","line_start":51},{"id":"external_commands:SKILL.md:53:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"```text","category":"external_commands","line_end":55,"severity":"medium","line_start":53},{"id":"external_commands:SKILL.md:55:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"```","category":"external_commands","line_end":57,"severity":"medium","line_start":55},{"id":"network:SKILL.md:12:python-http-libraries","file":"SKILL.md","pattern":"Python HTTP libraries","snippet":"Resolve the requested effect before matching keywords. An explicit no-publish or local-only instruct","category":"network","line_end":12,"severity":"low","line_start":12},{"id":"network:SKILL.md:57:python-http-libraries","file":"SKILL.md","pattern":"Python HTTP libraries","snippet":"The runner uses `ClaudeCode/6.13.0 (+https://brewpage.app)` for direct REST requests.","category":"network","line_end":57,"severity":"low","line_start":57},{"id":"network:SKILL.md:57:hardcoded-url","file":"SKILL.md","pattern":"Hardcoded URL","snippet":"The runner uses `ClaudeCode/6.13.0 (+https://brewpage.app)` for direct REST requests.","category":"network","line_end":57,"severity":"low","line_start":57},{"id":"blocker:SKILL.md:39:system-reconnaissance","file":"SKILL.md","pattern":"System reconnaissance","snippet":"2. **Publish or compose and publish:** preserve supplied content and exact requested text, including","category":"blocker","line_end":39,"severity":"low","line_start":39},{"id":"blocker:SKILL.md:40:system-reconnaissance","file":"SKILL.md","pattern":"System reconnaissance","snippet":"3. **Update:** use the exact target and selected owner; inventory only for unknown targets. MCP: a t","category":"blocker","line_end":40,"severity":"low","line_start":40},{"id":"obfuscation:scripts/brewpage-lib.sh:130:heuristic-very-high-entropy-string-6-03-bits-lik","file":"scripts/brewpage-lib.sh","pattern":"[HEURISTIC] Very high entropy string (6.03 bits) - likely encoded/encrypted payload","snippet":" in *[!ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.]*) echo ","category":"obfuscation","line_end":130,"severity":"high","line_start":130},{"id":"obfuscation:scripts/publish.mjs:1:heuristic-multiple-bracket-chains-6-jsfuck-obfus","file":"scripts/publish.mjs","pattern":"[HEURISTIC] Multiple bracket chains (6) - JSFuck/obfuscation pattern","snippet":"())), ())), ()))","category":"obfuscation","line_end":1,"severity":"high","line_start":1}],"finding_verdicts":[{"id":"network:LICENSE:3:hardcoded-url","reason":"The repository URL is attribution in a license, not an outgoing request.","verdict":"false_positive","confidence":0.98},{"id":"network:README.md:15:python-http-libraries","reason":"The draft example explicitly describes local preparation without BrewPage requests or tool discovery.","verdict":"false_positive","confidence":0.98},{"id":"network:README.md:57:hardcoded-url","reason":"The example queries the public upload limits at the official BrewPage API without sending publication data or credentials.","verdict":"false_positive","confidence":0.98},{"id":"env_access:README.md:22:configuration-library","reason":"The text describes checking an existing host tool schema and owner selection, not importing a configuration library.","verdict":"false_positive","confidence":0.98},{"id":"blocker:README.md:42:system-reconnaissance","reason":"The option documents attaching a user-requested hostname with owner proof, not enumerating remote systems.","verdict":"false_positive","confidence":0.98},{"id":"blocker:README.md:78:system-reconnaissance","reason":"The prose limits domain management to user-controlled hostnames and describes the service's activation result.","verdict":"false_positive","confidence":0.98},{"id":"blocker:references/custom-domain.md:3:system-reconnaissance","reason":"The guide requires a user-controlled hostname and an eligible publication rather than probing unrelated hosts.","verdict":"false_positive","confidence":0.98},{"id":"blocker:references/custom-domain.md:5:system-reconnaissance","reason":"The MCP instructions scope the domain operation to a requested publication and the selected account.","verdict":"false_positive","confidence":0.98},{"id":"blocker:references/custom-domain.md:6:system-reconnaissance","reason":"The runner example describes an explicit custom-domain request with eligible account proof.","verdict":"false_positive","confidence":0.98},{"id":"blocker:references/custom-domain.md:7:system-reconnaissance","reason":"The owner authorization guide describes a targeted domain attachment, not network reconnaissance.","verdict":"false_positive","confidence":0.98},{"id":"blocker:references/ownership.md:5:system-reconnaissance","reason":"The guide restricts owner reuse to the selected BrewPage origin, workspace, and target, and leaves OAuth in the client.","verdict":"false_positive","confidence":0.98},{"id":"network:references/page-data.md:20:hardcoded-url","reason":"A published form loads and executes a versionless BrewPage script. Its behavior depends on the current hosted script.","verdict":"confirmed","confidence":0.96},{"id":"blocker:references/page-data.md:50:system-reconnaissance","reason":"This is a script-loading order note for the form recipe, not system reconnaissance.","verdict":"false_positive","confidence":0.98},{"id":"blocker:references/publishing.md:74:system-reconnaissance","reason":"The passage documents Page data and a user-requested domain, then tells the reader to use the returned receipt.","verdict":"false_positive","confidence":0.98},{"id":"blocker:references/publishing.md:3:network-reconnaissance","reason":"The heading describes preparing material and choosing access, not discovering network targets.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:59:ruby-shell-backtick-execution","reason":"The deletion example is literal text in a quoted heredoc. It is written into history, not executed by the helper.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:60:ruby-shell-backtick-execution","reason":"This update example is literal history text in a quoted heredoc, not an executed shell expression.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:70:ruby-shell-backtick-execution","reason":"The backticks are literal Markdown delimiters in a single-quoted printf format.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:73:ruby-shell-backtick-execution","reason":"The backticks are literal Markdown delimiters in a single-quoted printf format.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:196:ruby-shell-backtick-execution","reason":"The backticks appear in a shell comment about positional parameters and are not executable.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:8:shell-command-substitution","reason":"The substitution canonicalizes a quoted local path using cd and pwd, discarding diagnostics.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:9:shell-command-substitution","reason":"This compares canonical paths to avoid treating HOME as the project. It does not read profile contents.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:10:shell-command-substitution","reason":"This compares the proposed history directory with the configured profile location. It does not read profile files.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:21:shell-command-substitution","reason":"A fixed Git query resolves the checkout root. No supplied text is executed as shell code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:32:shell-command-substitution","reason":"A fixed dirname call moves upward during project root selection.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:37:shell-command-substitution","reason":"The substitution calls a bundled workspace resolution function and captures its path.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:48:shell-command-substitution","reason":"The substitution locates the bundled history helper relative to this script. Operation inputs are passed as arguments.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:71:shell-command-substitution","reason":"The fixed date command supplies a UTC timestamp for a history row.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:74:shell-command-substitution","reason":"The fixed date command supplies a UTC timestamp for a legacy history row.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:133:shell-command-substitution","reason":"A depth-zero find checks mode 0700 on the selected run directory. It does not traverse unrelated directories.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:217:shell-command-substitution","reason":"This is the REST transport for publication bytes and selected owner or password headers. Data leaves the workspace for the first-party API.","verdict":"confirmed","confidence":0.96},{"id":"external_commands:scripts/brewpage-lib.sh:233:shell-command-substitution","reason":"The fixed history helper selects proof for the intended operation. The substitution captures the owner API target, not the token.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:240:shell-command-substitution","reason":"Fixed isolated Python code generates a random operation ID. No user-supplied source is evaluated.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:246:shell-command-substitution","reason":"The substitution resolves the bundled helper path for preparing a protected recovery file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:251:shell-command-substitution","reason":"Fixed isolated Python code hashes the staged payload and builds a local request witness. Inputs are data, not source code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:285:shell-command-substitution","reason":"The substitution locates bundled history code and pipes the receipt into protected recovery storage.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:302:shell-command-substitution","reason":"A fixed filter extracts an HTTPS reader link from a response. It does not follow or contact that link.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:304:shell-command-substitution","reason":"The substitution calls a fixed JSON error parser. The response is data rather than a command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:306:shell-command-substitution","reason":"This substitution reads a status from the private run or parses the response. It does not execute response text.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:321:shell-command-substitution","reason":"A fixed filter parses the owner token returned by BrewPage into a shell variable, without evaluating it.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:322:shell-command-substitution","reason":"A fixed filter strips control characters from the returned management URL. It does not visit that URL.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:324:shell-command-substitution","reason":"The fixed filter accepts only a matching official owner endpoint. It does not make a network request.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:326:shell-command-substitution","reason":"A fixed filter selects receipt fields into local JSON. The response is never treated as shell code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:327:shell-command-substitution","reason":"A fixed jq expression assembles a private receipt; the fallback device supplies an empty proof when no owner header exists.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:332:shell-command-substitution","reason":"A fixed filter reads the returned file count. It does not execute response data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:387:shell-command-substitution","reason":"Fixed Python code hashes the checked ZIP so a review can bind to its bytes.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:406:shell-command-substitution","reason":"A fixed sed expression reads the entry field without executing the manifest. Manifest fidelity is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:70:template-literal-with-command-substitution","reason":"The backticks are literal Markdown delimiters in a single-quoted printf format.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:73:template-literal-with-command-substitution","reason":"The backticks are literal Markdown delimiters in a single-quoted printf format.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:197:http-client-library","reason":"This is the REST transport for publication bytes and selected owner or password headers. Data leaves the workspace for the first-party API.","verdict":"confirmed","confidence":0.96},{"id":"network:scripts/brewpage-lib.sh:249:http-client-library","reason":"This function computes a local request fingerprint. Its URL parser does not issue network requests.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:42:hardcoded-url","reason":"The URL is in a comment explaining the first-party user agent.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:43:hardcoded-url","reason":"The URL is metadata in a user-agent string, not a second request destination.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:59:hardcoded-url","reason":"The deletion example is literal text in a quoted heredoc. It is written into history, not executed by the helper.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:201:hardcoded-url","reason":"The URL pattern restricts requests to the official BrewPage API. It does not introduce an alternate destination.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:302:hardcoded-url","reason":"A fixed filter extracts an HTTPS reader link from a response. It does not follow or contact that link.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:324:hardcoded-url","reason":"The fixed filter accepts only a matching official owner endpoint. It does not make a network request.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:328:hardcoded-url","reason":"The official origin is a constant in the private receipt, not an additional network destination.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:92:path-traversal-sequence","reason":"The path pattern rejects parent components in submitted entry names. It does not open a parent path.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:10:hidden-file-access","reason":"This compares the proposed history directory with the configured profile location. It does not read profile files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:14:hidden-file-access","reason":"The comment describes project root discovery and avoiding profile directories. It does not access a hidden file.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:28:hidden-file-access","reason":"The code tests whether repository or project marker directories exist. It does not read their files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:38:hidden-file-access","reason":"The hidden workspace history stores plaintext reusable owner tokens. Mode and Git checks limit exposure but do not replace a secret store.","verdict":"confirmed","confidence":0.96},{"id":"filesystem:scripts/brewpage-lib.sh:98:hidden-file-access","reason":"The comment describes matching HTML suffixes, not access to hidden files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:103:hidden-file-access","reason":"The comment describes matching Markdown suffixes, not access to hidden files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:8:standard-device-file-access","reason":"The null device discards diagnostics from a local path or metadata check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:9:standard-device-file-access","reason":"The null device discards diagnostics from a local path or metadata check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:10:standard-device-file-access","reason":"The null device discards diagnostics from a local path or metadata check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:21:standard-device-file-access","reason":"The null device discards diagnostics from a local path or metadata check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:54:standard-device-file-access","reason":"The null device suppresses output from a fixed dependency check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:115:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:160:standard-device-file-access","reason":"The null device suppresses output from a fixed dependency check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:161:standard-device-file-access","reason":"The null device suppresses password-validation output or diagnostics. It is not used to read data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:178:standard-device-file-access","reason":"The null device suppresses output from a fixed dependency check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:190:standard-device-file-access","reason":"The null device suppresses password-validation output or diagnostics. It is not used to read data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:273:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:302:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:306:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:318:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:322:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:327:standard-device-file-access","reason":"The null device is an empty fallback when no protected owner proof file was selected.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:369:standard-device-file-access","reason":"The null device is an empty fallback when no protected owner proof file was selected.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:373:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:121:temp-file-creation","reason":"The helper uses mktemp with a restrictive umask to allocate a private run directory.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/brewpage-lib.sh:110:hex-encoded-characters","reason":"The escaped bytes match an optional UTF-8 byte order mark before HTML. No encoded program is executed.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:128:system-reconnaissance","reason":"This branch rejects malformed run identifiers. It does not inspect system resources.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:130:system-reconnaissance","reason":"The long string is an explicit character allowlist for a temporary run ID, not an encoded payload or reconnaissance command.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:153:system-reconnaissance","reason":"The fixed filter validates password header contents and rejects control characters. It is not system reconnaissance.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:155:system-reconnaissance","reason":"The comment requires an explicitly selected password file and describes its local validation.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:373:system-reconnaissance","reason":"This selects requested domain status fields from the response. It does not probe the domain or local system.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:392:system-reconnaissance","reason":"The file metadata check verifies that the reviewed snapshot is an owned, single-link regular file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:6:shell-command-substitution","reason":"Fixed path commands resolve the installed runner directory before loading its bundled library.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:27:shell-command-substitution","reason":"The substitution captures a freshly allocated private run path, not shell code from input.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:61:shell-command-substitution","reason":"Fixed cd and pwd commands resolve the directory selected for a read-only probe.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:63:shell-command-substitution","reason":"The probe lists HTML entries under the selected directory to suggest an entry file. It does not send the listing.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:66:shell-command-substitution","reason":"The local sorting pipeline selects an entry candidate from the supplied directory listing.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:69:shell-command-substitution","reason":"The fixed commands count local files and HTML entries to describe the selected input.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:70:shell-command-substitution","reason":"A fixed du call estimates the selected directory size without transmitting it.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:72:shell-command-substitution","reason":"Quoted path values are passed to fixed path commands to resolve the selected file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:78:shell-command-substitution","reason":"A fixed wc call measures the selected file. It does not send the file or execute its contents.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:79:shell-command-substitution","reason":"A fixed MIME probe examines the selected local file and suppresses diagnostics.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:90:shell-command-substitution","reason":"This fixed request reads public upload limits from BrewPage without publication content or owner proof.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:116:shell-command-substitution","reason":"Fixed isolated Python code appends staged text in a private run. The supplied text is read as data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:214:shell-command-substitution","reason":"The fixed bundled packer creates a checked snapshot and manifest from a selected directory. It does not upload them.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:219:shell-command-substitution","reason":"The fixed offline helper inspects the private copy of the selected ZIP and captures its manifest.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:283:shell-command-substitution","reason":"This is Bash integer arithmetic counting selected sources. It does not invoke a command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:284:shell-command-substitution","reason":"This is Bash integer arithmetic counting the staged run as one source.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:285:shell-command-substitution","reason":"This is Bash integer arithmetic counting the selected path as one source.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:338:shell-command-substitution","reason":"A fixed jq expression checks that Page data contains one JSON object. It treats input as data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:405:shell-command-substitution","reason":"Unlike the public limits command, this request sends the selected owner header to verify custom-domain eligibility at BrewPage.","verdict":"confirmed","confidence":0.96},{"id":"external_commands:scripts/brewpage-run.sh:438:shell-command-substitution","reason":"This call sends selected HTML or Markdown and any Page data settings to BrewPage. A successful write exposes the result to the selected audience.","verdict":"confirmed","confidence":0.96},{"id":"external_commands:scripts/brewpage-run.sh:444:shell-command-substitution","reason":"This call transmits the selected JSON bytes to BrewPage and creates or updates a remotely accessible publication.","verdict":"confirmed","confidence":0.96},{"id":"external_commands:scripts/brewpage-run.sh:449:shell-command-substitution","reason":"This call uploads the exact checked file to BrewPage. A named-file check cannot determine whether its contents contain private data.","verdict":"confirmed","confidence":0.96},{"id":"external_commands:scripts/brewpage-run.sh:458:shell-command-substitution","reason":"The read requests metadata from the exact authorized site endpoint to retain the existing entry.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:459:shell-command-substitution","reason":"A fixed JSON filter extracts the existing entry as text and does not execute it.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:463:shell-command-substitution","reason":"The fixed jq expression URL-encodes the site entry before adding it to the official request.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:465:shell-command-substitution","reason":"This call uploads the checked site archive and optional Page data settings. The upload creates or changes a remotely accessible site.","verdict":"confirmed","confidence":0.96},{"id":"network:scripts/brewpage-run.sh:90:hardcoded-url","reason":"This fixed request reads public upload limits from BrewPage without publication content or owner proof.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-run.sh:405:hardcoded-url","reason":"Unlike the public limits command, this request sends the selected owner header to verify custom-domain eligibility at BrewPage.","verdict":"confirmed","confidence":0.96},{"id":"network:scripts/brewpage-run.sh:416:hardcoded-url","reason":"This guard checks that the official owner endpoint matches the requested replacement type.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-run.sh:418:hardcoded-url","reason":"This guard rejects updates whose requested namespace does not match the official owner endpoint.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-run.sh:422:hardcoded-url","reason":"The runner constructs a first-party URL for a requested write, using a fixed API kind and validated namespace and lifetime.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:312:hidden-file-access","reason":"The comment describes selection by filename suffix. It does not access hidden files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:79:standard-device-file-access","reason":"The null device discards diagnostics from a local path or metadata check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:88:standard-device-file-access","reason":"The null device suppresses output from a fixed dependency check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:94:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:129:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:300:standard-device-file-access","reason":"The null device suppresses output from a fixed dependency check.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:338:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:406:standard-device-file-access","reason":"The null device suppresses output from an eligibility check on the returned account profile.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:442:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:459:standard-device-file-access","reason":"The null device suppresses output or diagnostics from a local format or response check. It does not expose device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:119:python-file-write-append","reason":"The append writes only to a private, locked staging file checked for ownership, mode, and link count.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:460:python-archive-libraries","reason":"Fixed Python code checks a relative entry against names in the checked ZIP. It does not extract members.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:122:system-reconnaissance","reason":"The helper checks the staging descriptor's file type, owner, permissions, and link count before writing.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:189:system-reconnaissance","reason":"The message labels the result as a local operator attestation and explicitly disclaims remote verification.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:325:system-reconnaissance","reason":"Fixed Python code checks the syntax of one supplied hostname without making a DNS request.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:342:system-reconnaissance","reason":"The line initializes local run and password-mode variables. It does not inspect system state.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:360:system-reconnaissance","reason":"The runner tests for staged text at a checked run path. It does not discover unrelated files.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:442:system-reconnaissance","reason":"A fixed jq command checks the selected publication input for valid JSON without executing it.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:460:system-reconnaissance","reason":"Fixed Python code checks a relative entry against names in the checked ZIP. It does not extract members.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/history.py:76:python-subprocess-run","reason":"The helper runs fixed Git inspection operations with argument lists and no shell interpolation.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/history.py:136:ruby-shell-backtick-execution","reason":"Python strips literal Markdown backticks and parses JSON data rather than evaluating it.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/history.py:145:ruby-shell-backtick-execution","reason":"Python strips literal Markdown backticks from a stored token cell. No shell is involved.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/history.py:248:ruby-shell-backtick-execution","reason":"The f-string builds a Markdown history row. Backticks delimit literal Markdown fields and are never executed.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/history.py:295:python-http-libraries","reason":"The requests value is a local dictionary of pending records, not the Python HTTP library.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/history.py:25:hardcoded-url","reason":"The first-party origin constant constrains owner proof and receipt validation. The history helper does not send requests.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/history.py:122:hardcoded-url","reason":"The HTTPS pattern parses a local Markdown history link. It does not fetch that link.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/history.py:239:hardcoded-url","reason":"The pattern validates a reader URL and excludes control characters and Markdown delimiters. It neither fetches the URL nor decodes a payload.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:492:path-traversal-sequence","reason":"The parent-path prefix distinguishes resolution files outside the repository. It is not used to construct a traversal path.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:52:python-file-write-append","reason":"A private temporary file is written and atomically renamed to the checked destination.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:207:python-file-write-append","reason":"The validated token is written to a private, exclusively created transport header file.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:60:python-os-file-operations","reason":"Cleanup unlinks the generated temporary file relative to the already opened directory.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:528:python-os-file-operations","reason":"Cleanup unlinks the fixed recovery receipt after the exact local receipt was imported and history readback passed.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/history.py:76:python-environment-access","reason":"The Git helper inherits the complete environment, not just locale and path settings. No remote transmission was found, but the child receives unnecessary variables.","verdict":"confirmed","confidence":0.88},{"id":"env_access:scripts/history.py:86:python-environment-access","reason":"The helper checks for a repository marker or GIT_DIR to avoid saving credentials without Git protections.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/history.py:101:python-environment-access","reason":"The helper reads a lock descriptor number from the environment and verifies it matches the workspace.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/history.py:466:python-environment-access","reason":"The helper reads a per-operation identifier and validates its format before using it as a history marker.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/history.py:239:hex-encoded-characters","reason":"The pattern validates a reader URL and excludes control characters and Markdown delimiters. It neither fetches the URL nor decodes a payload.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:38:system-reconnaissance","reason":"The descriptor check requires an owned, single-link regular history or ignore file.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:127:system-reconnaissance","reason":"This validates stored reader URL syntax and rejects user information, fragments, and unexpected ports.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:143:system-reconnaissance","reason":"The condition refuses to infer an owner endpoint from a custom reader hostname.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:174:system-reconnaissance","reason":"The exception rejects invalid proof from an explicitly selected owner-token file.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:234:system-reconnaissance","reason":"The exception rejects a receipt that explicitly fails to confirm ownership.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:243:system-reconnaissance","reason":"The exception rejects malformed proof or conflicting target identity.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:357:system-reconnaissance","reason":"The helper rejects unknown operations and unexpected history destinations.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:365:system-reconnaissance","reason":"The helper rejects a workspace not owned by the user or writable by others.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:382:system-reconnaissance","reason":"The helper validates a recovery receipt's shape, origin, endpoint, and token.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:419:system-reconnaissance","reason":"The parent directory ownership and write-permission check protects credential storage.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:437:system-reconnaissance","reason":"The exception rejects an invalid protected recovery object during pending-state inspection.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:473:system-reconnaissance","reason":"The exception rejects a non-string reference from the protected local receipt.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:497:system-reconnaissance","reason":"The exception rejects a malformed fallback receipt before reconciliation.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:515:system-reconnaissance","reason":"The check requires one verified-format local row with reusable owner proof.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:526:system-reconnaissance","reason":"The exception detects a mismatch during verification of the saved local history.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:4:node-js-child-process-module","reason":"The import supplies fixed archive and snapshot subprocesses. No child is started by this import.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:391:process-spawn","reason":"The only callers run fixed Python snapshot code or the local ZIP tool with explicit arguments. Shell evaluation is not enabled.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:318:synchronous-spawn","reason":"The helper invokes unzip with fixed test or list flags and the checked archive as a separate argument. It uses a timeout and buffer cap.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:452:synchronous-spawn","reason":"The fixed isolated Python routine converts checked text assets to MCP JSON. Paths are arguments and not evaluated as code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:489:synchronous-spawn","reason":"The packer starts fixed isolated Python snapshot code with explicit path and inode arguments. It does not execute file contents.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:2:ruby-shell-backtick-execution","reason":"The backticks in this comment delimit usage examples for the offline packer.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:33:ruby-shell-backtick-execution","reason":"The comment describes filtering dot-prefixed site entries. Its backticks are documentation.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:36:ruby-shell-backtick-execution","reason":"The comment describes the root .well-known asset exception, using backticks as documentation.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:37:ruby-shell-backtick-execution","reason":"The JavaScript template builds a literal directory prefix for a local path comparison.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:49:ruby-shell-backtick-execution","reason":"The JavaScript template builds a device and inode identity for a protected file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:54:ruby-shell-backtick-execution","reason":"The template builds an identity key for an exclusion check, not a command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:60:ruby-shell-backtick-execution","reason":"The comment documents the archive listing buffer cap. Its backticks do not execute a command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:65:ruby-shell-backtick-execution","reason":"The JavaScript raw string contains fixed snapshot code. Selected sources are passed separately as structured input.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:124:ruby-shell-backtick-execution","reason":"The JavaScript raw string contains fixed single-file copying code. Paths are provided as arguments, not source.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:151:ruby-shell-backtick-execution","reason":"The JavaScript raw string holds fixed code to serialize checked text assets for MCP.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:231:ruby-shell-backtick-execution","reason":"The JavaScript template formats a local error message without executing it.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:241:ruby-shell-backtick-execution","reason":"The JavaScript template formats an argument validation error, not a command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:251:ruby-shell-backtick-execution","reason":"The template formats the error for an invalid relative entry name.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:285:ruby-shell-backtick-execution","reason":"The template prints a bad-entry diagnostic after an exact archive membership check.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:297:ruby-shell-backtick-execution","reason":"The backticks mark a function parameter in a comment and are not executable.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:306:ruby-shell-backtick-execution","reason":"The template formats a missing-tool error after a local PATH check.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:311:ruby-shell-backtick-execution","reason":"The template formats a fixed child process's numeric exit status.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:312:ruby-shell-backtick-execution","reason":"The template formats a child process error rather than running its message.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:313:ruby-shell-backtick-execution","reason":"The template formats a termination signal for reporting.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:316:ruby-shell-backtick-execution","reason":"The comment describes the archive subprocess return format. It does not start a process.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:321:ruby-shell-backtick-execution","reason":"The template formats the result of an archive check. It is not command execution.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:324:ruby-shell-backtick-execution","reason":"The comment names the two fixed archive inspection modes used by the packer.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:339:ruby-shell-backtick-execution","reason":"The template prints the archive basename as a manifest heading.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:340:ruby-shell-backtick-execution","reason":"The template prints member names as text, not shell code. Manifest fidelity is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:341:ruby-shell-backtick-execution","reason":"The template prints the manifest's file count.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:342:ruby-shell-backtick-execution","reason":"The template prints a byte count.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:343:ruby-shell-backtick-execution","reason":"The template prints the selected entry as text for review.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:344:ruby-shell-backtick-execution","reason":"The nested template reports the count of protected entries skipped, not their contents.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:345:ruby-shell-backtick-execution","reason":"The template formats a summary of skipped paths as text.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:346:ruby-shell-backtick-execution","reason":"The template reports names flagged as unexpected for review.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:348:ruby-shell-backtick-execution","reason":"The template reports names flagged as sensitive. It does not read their contents.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:350:ruby-shell-backtick-execution","reason":"The template prints a fixed result label based on whether confirmation is required.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:359:ruby-shell-backtick-execution","reason":"The template reports a directory validation error. It does not execute the displayed path.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:371:ruby-shell-backtick-execution","reason":"The template reports that no files matched the local asset allowlist.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:374:ruby-shell-backtick-execution","reason":"The comment explains why the packer avoids a preexisting empty archive. It does not allocate a file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:422:ruby-shell-backtick-execution","reason":"The JavaScript template supplies a checked filename list to ZIP on standard input, not as shell code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:431:ruby-shell-backtick-execution","reason":"The template formats an interruption message after cancellation and cleanup.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:437:ruby-shell-backtick-execution","reason":"The template reports a failed ZIP build, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:449:ruby-shell-backtick-execution","reason":"The template reports a mismatch between selected files and the archive listing.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:461:ruby-shell-backtick-execution","reason":"The template reports an invalid ZIP input path, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:5:synchronous-file-operations","reason":"These are standard filesystem imports for local verification and private staging. The import performs no file access.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:178:synchronous-file-operations","reason":"The synchronous read loads the selected ZIP after a size check for local archive verification.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:274:hidden-file-access","reason":"This rule skips filenames containing line breaks from a directory build. It does not access hidden files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:5:temp-file-creation","reason":"These are standard filesystem imports for local verification and private staging. The import performs no file access.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:374:temp-file-creation","reason":"The comment explains why the packer avoids a preexisting empty archive. It does not allocate a file.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:415:temp-file-creation","reason":"The helper creates a fresh private snapshot directory and removes it after packing.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:103:python-file-write-append","reason":"The snapshot writes approved bytes to an exclusive, mode-0600 file inside a private directory.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:167:python-file-write-append","reason":"The helper writes checked MCP JSON to an exclusively created mode-0600 file.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:146:python-shutil-operations","reason":"The copy transfers from a checked source descriptor to a private output opened exclusively.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:101:python-os-file-operations","reason":"The helper creates private directories under a fresh snapshot from validated path components.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:152:python-archive-libraries","reason":"The standard ZIP module is used to read checked site assets, not execute archive content.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:154:python-archive-libraries","reason":"The helper reads member bytes from a checked archive and serializes text. It does not extract member paths to disk.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:171:python-archive-libraries","reason":"The exception handler stops when the archive or local input is invalid.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:304:environment-variable-access-dot-notation","reason":"The code reads the executable suffix list for dependency lookup on Windows. It does not read an environment file.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:305:environment-variable-access-dot-notation","reason":"The code reads the host PATH for dependency lookup. It does not open an environment file or send the value.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:304:environment-variable-object","reason":"The code reads the executable suffix list for dependency lookup on Windows. It does not read an environment file.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:305:environment-variable-object","reason":"The code reads the host PATH for dependency lookup. It does not open an environment file or send the value.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/publish.mjs:163:hex-encoded-characters","reason":"The escaped byte is a NUL sentinel used to reject non-text data. It is not an obfuscated payload.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:40:ssh-private-key-file","reason":"The regular expression flags credential-looking names for review. It does not open SSH keys or environment files.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:40:environment-file-access","reason":"The regular expression flags credential-looking names for review. It does not open SSH keys or environment files.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:41:environment-file-access","reason":"The regular expression recognizes reserved credential basenames for exclusion. It does not open the named files.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:304:environment-file-access","reason":"The code reads the executable suffix list for dependency lookup on Windows. It does not read an environment file.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:305:environment-file-access","reason":"The code reads the host PATH for dependency lookup. It does not open an environment file or send the value.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:31:sqlite-database-file","reason":"The database-looking suffix belongs to Thumbs.db in a junk-file filter. No SQLite database is read.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:60:system-reconnaissance","reason":"The comment documents the archive listing buffer cap. Its backticks do not execute a command.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:88:system-reconnaissance","reason":"The snapshot code rejects invalid archive member paths before opening them.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:99:system-reconnaissance","reason":"The snapshot code rejects nonregular, changed, or oversized inputs.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:139:system-reconnaissance","reason":"The helper validates ownership and permissions of staged content.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:142:system-reconnaissance","reason":"The helper validates ownership and mode 0700 on the staged run directory.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:182:system-reconnaissance","reason":"The helper returns an error for an archive without a valid central directory.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:486:system-reconnaissance","reason":"The condition rejects staged files not owned by the user or not set to mode 0600.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:10:ruby-shell-backtick-execution","reason":"Backticks mark the argument placeholder in Markdown, not shell execution.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:16:ruby-shell-backtick-execution","reason":"The table uses a Markdown code span for the local-only draft mode.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:17:ruby-shell-backtick-execution","reason":"The Markdown code span labels the publish intent. It is not a shell expression.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:18:ruby-shell-backtick-execution","reason":"The Markdown code span labels the compose-and-publish intent. It is not a shell expression.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:19:ruby-shell-backtick-execution","reason":"The Markdown code span labels an update mode restricted elsewhere to an exact publication.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:21:ruby-shell-backtick-execution","reason":"The backticks label modes in prose. The authorization risk of the direct-invocation default is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:27:ruby-shell-backtick-execution","reason":"This Markdown fence opens a text template for the user's plan, not executable code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:34:ruby-shell-backtick-execution","reason":"This Markdown fence closes the text template for the user's plan.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:39:ruby-shell-backtick-execution","reason":"The examples document content preservation and requested access for publishing. The markup is neither shell code nor host reconnaissance.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:40:ruby-shell-backtick-execution","reason":"The documented operations concern a selected owner and publication. The tool call example is not a shell command or general reconnaissance.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:44:ruby-shell-backtick-execution","reason":"The Markdown code spans name credential fields in a warning about transcript privacy. They are not evaluated.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:46:ruby-shell-backtick-execution","reason":"The text names supported host tools and requires a verified binding. It does not run dynamically generated shell code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:48:ruby-shell-backtick-execution","reason":"The Markdown code spans describe account selection and require the client to handle OAuth.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:51:ruby-shell-backtick-execution","reason":"The code span identifies a runner path placeholder in prose, not source code to evaluate.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:53:ruby-shell-backtick-execution","reason":"The Markdown fence opens a plain-text runner path example.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:55:ruby-shell-backtick-execution","reason":"The Markdown fence closes the runner path example.","verdict":"false_positive","confidence":0.98},{"id":"network:SKILL.md:12:python-http-libraries","reason":"The text requires local-only and explanation-only requests to make no BrewPage calls. It does not load an HTTP library.","verdict":"false_positive","confidence":0.98},{"id":"network:SKILL.md:57:python-http-libraries","reason":"The code span documents the first-party REST user agent. It neither loads Python networking nor initiates a request.","verdict":"false_positive","confidence":0.98},{"id":"network:SKILL.md:57:hardcoded-url","reason":"The code span documents the first-party REST user agent. It neither loads Python networking nor initiates a request.","verdict":"false_positive","confidence":0.98},{"id":"blocker:SKILL.md:39:system-reconnaissance","reason":"The examples document content preservation and requested access for publishing. The markup is neither shell code nor host reconnaissance.","verdict":"false_positive","confidence":0.98},{"id":"blocker:SKILL.md:40:system-reconnaissance","reason":"The documented operations concern a selected owner and publication. The tool call example is not a shell command or general reconnaissance.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/brewpage-lib.sh:130:heuristic-very-high-entropy-string-6-03-bits-lik","reason":"The long string is an explicit character allowlist for a temporary run ID, not an encoded payload or reconnaissance command.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/publish.mjs:1:heuristic-multiple-bracket-chains-6-jsfuck-obfus","reason":"The file is ordinary JavaScript with explicit arrays and fixed helper code. The bracket heuristic does not identify JSFuck or dynamic decoding.","verdict":"false_positive","confidence":0.98}],"semantic_findings":[{"title":"Direct Invocation Can Imply Permission to Publish","severity":"medium","locations":[{"file":"SKILL.md","line_end":23,"line_start":12},{"file":"SKILL.md","line_end":40,"line_start":36}],"confidence":0.96,"description":"The prompt contract lets direct invocation with supplied material default to a live publish. Supplying material is not always an affirmative decision to send it to BrewPage or create a shareable link.","confidence_reasoning":"The default is explicit in the prompt contract. Local-only and ambiguous requests have safeguards, but the default does not require affirmative permission to publish."},{"title":"Private Recovery Can Return Owner Credentials in Tool Output","severity":"high","locations":[{"file":"scripts/brewpage-run.sh","line_end":169,"line_start":166},{"file":"scripts/history.py","line_end":385,"line_start":377},{"file":"references/ownership.md","line_end":33,"line_start":26}],"confidence":0.98,"description":"The recovery command prints the full owner receipt to standard output after checking a command flag. A shared or logged tool channel can expose a reusable owner token despite protected file permissions.","confidence_reasoning":"The flag gates the command, but the helper cannot verify the output channel. The receipt validation confirms the printed object contains a reusable token."},{"title":"ZIP Review Does Not Reliably Represent Every Uploaded Member","severity":"medium","locations":[{"file":"scripts/publish.mjs","line_end":203,"line_start":191},{"file":"scripts/publish.mjs","line_end":351,"line_start":324},{"file":"scripts/publish.mjs","line_end":475,"line_start":458},{"file":"scripts/brewpage-run.sh","line_end":466,"line_start":452}],"confidence":0.94,"description":"The ZIP manifest uses a trimmed, line-based listing instead of preserving exact member names. REST uploads the original checked archive, so a manifest approval does not establish that every member was represented accurately.","confidence_reasoning":"The listing trims names and does not validate all members as canonical, unique paths. Byte limits and digest binding do not resolve differences between the manifest and the archive."},{"title":"REST Success Is Not Bound to HTTP Status","severity":"medium","locations":[{"file":"scripts/brewpage-lib.sh","line_end":225,"line_start":216},{"file":"scripts/brewpage-lib.sh","line_end":329,"line_start":295},{"file":"scripts/brewpage-lib.sh","line_end":359,"line_start":351}],"confidence":0.97,"description":"The runner enters its success path when a response contains an HTTPS link, even if the transport recorded a non-success status. It can report a publication as confirmed without a valid success receipt.","confidence_reasoning":"Status is recorded at transport time but read only when the link is absent. No live service response was tested."}],"subject_marketplace_commit_sha":"6447e2daa97992fcdbc2183687e9619fa1e976b8","subject_content_hash":"3ee6a06084d9f5ccd7a12cd51acd2486cb34fcf737664357aec8aa405545b581","subject_tree_hash":"67ccccb6f69711e392286856ef5a86b34ba5bf96e2dcb752e6c0a4ffcea0053d","subject_plugin_path":"skills/kochetkov-ma/brewpage-publish","audit_payload_hash":"92ff7e79d263a5c098675bc7dc444aac","confirmed_risk_level":"high","scanner_version":"3.0.0","policy_version":"skillstore-security-audit-policy-v1","subject":{"marketplaceCommitSha":"6447e2daa97992fcdbc2183687e9619fa1e976b8","contentHash":"3ee6a06084d9f5ccd7a12cd51acd2486cb34fcf737664357aec8aa405545b581","treeHash":"67ccccb6f69711e392286856ef5a86b34ba5bf96e2dcb752e6c0a4ffcea0053d","pluginPath":"skills/kochetkov-ma/brewpage-publish","auditPayloadHash":"92ff7e79d263a5c098675bc7dc444aac"},"scannerVersion":"3.0.0","policyVersion":"skillstore-security-audit-policy-v1"},"auditTranslation":null,"localization":{"requestedLocale":"en","contentLocale":"en","availableLocales":["en"],"fallbackToEnglish":false},"attestation":{"availability":"issued","url":"/api/skills/kochetkov-ma-brewpage-publish/audits/10/attestation","status":"active"},"trust":{"publicState":"public","auditState":"complete","auditCurrentness":null,"confirmedRiskLevel":"high","confirmedFindingCount":4,"capabilityReviewCount":11,"needsReviewCount":0,"falsePositiveCount":0,"agentAutoInstallPolicy":"confirmation_required","manualInstallPolicy":"allowed","artifactSignatureState":"available","attestationState":"active","verificationState":"not_verified"},"isLatest":true}}