{"data":{"skill":{"slug":"kochetkov-ma-brewpage-publish-safe","name":"brewpage-publish-safe","icon":"📦","repo":"https://github.com/kochetkov-ma/claude-brewcode/tree/f6817faf3aa640a22723dd5918cfda759cb9509b/skills/brewpage-publish-safe","status":"approved","author":"kochetkov-ma","authorVersion":null,"skillstoreRevision":1,"license":"MIT"},"licenseCorrection":null,"audit":{"id":"6ff2cde8-70ea-4b06-9424-e5fb940de88c","skill_id":"7749acd0-7f70-4def-b42f-c8d7a4557f3f","version":1,"content_hash":"v3:6291108d204278f63c302d79d6cba4470218195b:949aa7bb47750db20b76abcf075b18a88b12a80fb414e8c79964803edfe01922:90d45386e9373be6cc550039b402b6488be556faa6b6baa033495c31ffe596e8:736b696c6c732f6b6f636865746b6f762d6d612f62726577706167652d7075626c6973682d73616665:9c2057176a8bcda9e98e6900ae3a9cdc","risk_level":"high","is_blocked":false,"safe_to_publish":false,"analysis_status":"ok","agent_auto_install_policy":"confirmation_required","manual_install_policy":"allowed","summary":"Most alerts match documented BrewPage requests, private state operations, fixed utility calls, or literal text. No evidence of deliberate credential exfiltration or reviewer-directed prompt injection was found. Residual risks include non-isolated Python startup, inherited environment settings, and incomplete validation of publication inputs and results.","remediation":[{"issue":"Some publish-time Python helpers are not isolated.","severity":"high","suggestion":"Use isolated Python with site initialization disabled for every helper. Resolve tool binaries from a trusted environment."},{"issue":"Child utilities inherit environment settings that are not needed.","severity":"medium","suggestion":"Pass a minimal explicit child environment. Clear Git repository-discovery overrides before checking the state path."},{"issue":"Archive review text mixes untrusted names and runner status.","severity":"medium","suggestion":"Escape filenames in display output and encode the entry and decision in structured data. Keep the digest tied to the actual upload snapshot."},{"issue":"Reserved-name filtering does not prevent accidental disclosure of embedded secrets.","severity":"medium","suggestion":"Disclose the limits of filename checks. Scan publication inputs for secrets and reject opaque nested archives unless they are separately reviewed."},{"issue":"Password file checks do not protect the later copy from path replacement.","severity":"medium","suggestion":"Open the source once without following symlinks. Verify the opened descriptor and derive the private header from those same bytes."},{"issue":"The reader link can use a host not bound to the confirmed publication.","severity":"medium","suggestion":"Require a supported BrewPage host and matching publication route, or verify an authorized custom host using trusted service metadata before reporting it."}],"risk_factor_evidence":[{"factor":"network","evidence":[{"file":"LICENSE","line_end":3,"line_start":3},{"file":"scripts/brewpage-lib.sh","line_end":195,"line_start":195},{"file":"scripts/brewpage-lib.sh","line_end":237,"line_start":237},{"file":"scripts/brewpage-lib.sh","line_end":45,"line_start":45},{"file":"scripts/brewpage-lib.sh","line_end":199,"line_start":199},{"file":"scripts/brewpage-lib.sh","line_end":285,"line_start":285},{"file":"scripts/brewpage-lib.sh","line_end":288,"line_start":288},{"file":"scripts/brewpage-lib.sh","line_end":290,"line_start":290},{"file":"scripts/brewpage-lib.sh","line_end":292,"line_start":292},{"file":"scripts/brewpage-lib.sh","line_end":335,"line_start":335},{"file":"scripts/brewpage-run.sh","line_end":85,"line_start":85},{"file":"scripts/brewpage-run.sh","line_end":319,"line_start":319},{"file":"scripts/brewpage-run.sh","line_end":321,"line_start":321},{"file":"scripts/brewpage-run.sh","line_end":325,"line_start":325},{"file":"scripts/history.py","line_end":27,"line_start":27},{"file":"scripts/history.py","line_end":161,"line_start":161},{"file":"scripts/history.py","line_end":174,"line_start":174}]},{"factor":"filesystem","evidence":[{"file":"README.md","line_end":23,"line_start":23},{"file":"README.md","line_end":23,"line_start":23},{"file":"scripts/brewpage-lib.sh","line_end":43,"line_start":43},{"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":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":60,"line_start":60},{"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":176,"line_start":176},{"file":"scripts/brewpage-lib.sh","line_end":188,"line_start":188},{"file":"scripts/brewpage-lib.sh","line_end":275,"line_start":275},{"file":"scripts/brewpage-lib.sh","line_end":296,"line_start":296},{"file":"scripts/brewpage-lib.sh","line_end":320,"line_start":320},{"file":"scripts/brewpage-lib.sh","line_end":323,"line_start":323},{"file":"scripts/brewpage-lib.sh","line_end":334,"line_start":334},{"file":"scripts/brewpage-lib.sh","line_end":370,"line_start":370},{"file":"scripts/brewpage-lib.sh","line_end":121,"line_start":121},{"file":"scripts/brewpage-run.sh","line_end":236,"line_start":236},{"file":"scripts/brewpage-run.sh","line_end":74,"line_start":74},{"file":"scripts/brewpage-run.sh","line_end":83,"line_start":83},{"file":"scripts/brewpage-run.sh","line_end":89,"line_start":89},{"file":"scripts/brewpage-run.sh","line_end":124,"line_start":124},{"file":"scripts/brewpage-run.sh","line_end":226,"line_start":226},{"file":"scripts/brewpage-run.sh","line_end":258,"line_start":258},{"file":"scripts/brewpage-run.sh","line_end":344,"line_start":344},{"file":"scripts/brewpage-run.sh","line_end":362,"line_start":362},{"file":"scripts/brewpage-run.sh","line_end":114,"line_start":114},{"file":"scripts/brewpage-run.sh","line_end":363,"line_start":363},{"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":119,"line_start":119},{"file":"scripts/history.py","line_end":400,"line_start":400},{"file":"scripts/history.py","line_end":442,"line_start":442},{"file":"scripts/history.py","line_end":444,"line_start":444},{"file":"scripts/history.py","line_end":446,"line_start":446},{"file":"scripts/publish.mjs","line_end":5,"line_start":5},{"file":"scripts/publish.mjs","line_end":155,"line_start":155},{"file":"scripts/publish.mjs","line_end":277,"line_start":277},{"file":"scripts/publish.mjs","line_end":5,"line_start":5},{"file":"scripts/publish.mjs","line_end":375,"line_start":375}]},{"factor":"external_commands","evidence":[{"file":"scripts/brewpage-lib.sh","line_end":65,"line_start":65},{"file":"scripts/brewpage-lib.sh","line_end":74,"line_start":74},{"file":"scripts/brewpage-lib.sh","line_end":194,"line_start":194},{"file":"scripts/brewpage-lib.sh","line_end":292,"line_start":292},{"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":43,"line_start":43},{"file":"scripts/brewpage-lib.sh","line_end":48,"line_start":48},{"file":"scripts/brewpage-lib.sh","line_end":75,"line_start":75},{"file":"scripts/brewpage-lib.sh","line_end":133,"line_start":133},{"file":"scripts/brewpage-lib.sh","line_end":214,"line_start":214},{"file":"scripts/brewpage-lib.sh","line_end":230,"line_start":230},{"file":"scripts/brewpage-lib.sh","line_end":233,"line_start":233},{"file":"scripts/brewpage-lib.sh","line_end":244,"line_start":239},{"file":"scripts/brewpage-lib.sh","line_end":306,"line_start":306},{"file":"scripts/brewpage-lib.sh","line_end":307,"line_start":307},{"file":"scripts/brewpage-lib.sh","line_end":323,"line_start":323},{"file":"scripts/brewpage-lib.sh","line_end":332,"line_start":332},{"file":"scripts/brewpage-lib.sh","line_end":333,"line_start":333},{"file":"scripts/brewpage-lib.sh","line_end":335,"line_start":334},{"file":"scripts/brewpage-lib.sh","line_end":339,"line_start":339},{"file":"scripts/brewpage-lib.sh","line_end":386,"line_start":384},{"file":"scripts/brewpage-lib.sh","line_end":403,"line_start":403},{"file":"scripts/brewpage-lib.sh","line_end":194,"line_start":74},{"file":"scripts/brewpage-lib.sh","line_end":292,"line_start":194},{"file":"scripts/brewpage-run.sh","line_end":6,"line_start":6},{"file":"scripts/brewpage-run.sh","line_end":25,"line_start":25},{"file":"scripts/brewpage-run.sh","line_end":56,"line_start":56},{"file":"scripts/brewpage-run.sh","line_end":58,"line_start":58},{"file":"scripts/brewpage-run.sh","line_end":61,"line_start":61},{"file":"scripts/brewpage-run.sh","line_end":64,"line_start":64},{"file":"scripts/brewpage-run.sh","line_end":65,"line_start":65},{"file":"scripts/brewpage-run.sh","line_end":67,"line_start":67},{"file":"scripts/brewpage-run.sh","line_end":73,"line_start":73},{"file":"scripts/brewpage-run.sh","line_end":74,"line_start":74},{"file":"scripts/brewpage-run.sh","line_end":85,"line_start":85},{"file":"scripts/brewpage-run.sh","line_end":113,"line_start":111},{"file":"scripts/brewpage-run.sh","line_end":187,"line_start":185},{"file":"scripts/brewpage-run.sh","line_end":191,"line_start":190},{"file":"scripts/brewpage-run.sh","line_end":213,"line_start":213},{"file":"scripts/brewpage-run.sh","line_end":214,"line_start":214},{"file":"scripts/brewpage-run.sh","line_end":215,"line_start":215},{"file":"scripts/brewpage-run.sh","line_end":258,"line_start":258},{"file":"scripts/brewpage-run.sh","line_end":340,"line_start":340},{"file":"scripts/brewpage-run.sh","line_end":346,"line_start":346},{"file":"scripts/brewpage-run.sh","line_end":351,"line_start":351}]},{"factor":"env_access","evidence":[{"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":116,"line_start":116},{"file":"scripts/history.py","line_end":368,"line_start":368},{"file":"scripts/publish.mjs","line_end":307,"line_start":307},{"file":"scripts/publish.mjs","line_end":308,"line_start":308},{"file":"scripts/publish.mjs","line_end":307,"line_start":307},{"file":"scripts/publish.mjs","line_end":308,"line_start":308},{"file":"scripts/publish.mjs","line_end":313,"line_start":313}]}],"critical_findings":[],"high_findings":[{"title":"Python Startup Is Not Consistently Isolated","locations":[{"file":"scripts/brewpage-lib.sh","line_end":115,"line_start":108},{"file":"scripts/brewpage-lib.sh","line_end":389,"line_start":382},{"file":"scripts/brewpage-run.sh","line_end":294,"line_start":289}],"confidence":0.96,"description":"Some publish-time helpers start Python without isolated mode. Local module lookup and interpreter startup can execute code outside the installed skill before content validation completes.","review_kind":"security","source_category":"semantic","source_severity":"high","confidence_reasoning":"The HTML, UTF-8, and digest helpers omit the interpreter flags used for history and snapshot operations. The runner does not establish a trusted working directory."}],"medium_findings":[{"title":"Python environment access","locations":[{"file":"scripts/history.py","line_end":76,"line_start":76}],"confidence":0.94,"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 safety check inherits repository-discovery overrides from the caller. These can invalidate the check that credential state is outside a Git working tree."},{"title":"Archive Review Includes Untrusted Filename Text","locations":[{"file":"scripts/publish.mjs","line_end":278,"line_start":269},{"file":"scripts/publish.mjs","line_end":352,"line_start":337},{"file":"scripts/brewpage-run.sh","line_end":195,"line_start":181},{"file":"scripts/brewpage-lib.sh","line_end":403,"line_start":397}],"confidence":0.95,"description":"Skipped filenames can enter the review transcript without escaping. The runner also derives the entry point from printed text instead of a separate structured field.","review_kind":"security","source_category":"semantic","source_severity":"medium","confidence_reasoning":"Names with line breaks can enter the skipped list, which the formatter prints verbatim. The shell later reads an entry value from that same manifest output."},{"title":"Credential Filtering Does Not Inspect File Contents","locations":[{"file":"scripts/publish.mjs","line_end":20,"line_start":9},{"file":"scripts/publish.mjs","line_end":54,"line_start":39},{"file":"scripts/publish.mjs","line_end":279,"line_start":265},{"file":"scripts/publish.mjs","line_end":498,"line_start":475},{"file":"scripts/brewpage-run.sh","line_end":352,"line_start":339}],"confidence":0.98,"description":"The skill relies on names, file metadata, and known path identities to screen uploads. An approved file can still contain exposed secrets, including inside nested archives.","review_kind":"security","source_category":"semantic","source_severity":"medium","confidence_reasoning":"The code checks reserved names and selected file identities, not arbitrary payload content. The runner sends selected content to BrewPage after those checks."},{"title":"Password Source Validation Is Not Bound to the Read","locations":[{"file":"scripts/brewpage-lib.sh","line_end":162,"line_start":155},{"file":"scripts/brewpage-lib.sh","line_end":189,"line_start":177},{"file":"scripts/brewpage-lib.sh","line_end":210,"line_start":205}],"confidence":0.94,"description":"The runner checks the selected password file and later reopens its path. A local replacement can change the password or place unintended data in the publication header.","review_kind":"security","source_category":"semantic","source_severity":"medium","confidence_reasoning":"The copy uses the path again without retaining the validated descriptor. The later check validates password syntax, not the identity of the source file."},{"title":"Reader Links Are Not Bound to an Approved Host","locations":[{"file":"scripts/brewpage-lib.sh","line_end":296,"line_start":285},{"file":"scripts/brewpage-lib.sh","line_end":360,"line_start":356},{"file":"scripts/history.py","line_end":166,"line_start":160}],"confidence":0.96,"description":"The receipt checks the official write endpoint but can display an arbitrary HTTPS reader host as confirmed. That can mislead users about where a publication is hosted.","review_kind":"security","source_category":"semantic","source_severity":"medium","confidence_reasoning":"The reader identity check applies only to the main BrewPage hostname. The runner displays the validated string without requesting it or checking another host binding."}],"low_findings":[{"title":"Environment variable object","locations":[{"file":"scripts/publish.mjs","line_end":313,"line_start":313}],"confidence":0.92,"description":"const archiveEnv = { ...process.env };","review_kind":"capability","source_category":"env_access","source_severity":"low","confidence_reasoning":"ZIP utilities inherit the caller environment after only ZIP option defaults are removed. This unnecessarily exposes unrelated environment values to child processes."}],"dangerous_patterns":[],"files_scanned":8,"total_lines":1846,"audit_model":"codex","audited_at":"2026-11-19T15:32:52.858+00:00","created_at":"2026-11-20T03:40:29.648844+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":"filesystem:README.md:23:hidden-file-in-home-directory","file":"README.md","pattern":"Hidden file in home directory","snippet":"Safe stores owner records under `~/Library/Application Support/brewpage-publish-safe` on macOS or `$","category":"filesystem","line_end":23,"severity":"high","line_start":23},{"id":"filesystem:README.md:23:hidden-file-access","file":"README.md","pattern":"Hidden file access","snippet":"Safe stores owner records under `~/Library/Application Support/brewpage-publish-safe` on macOS or `$","category":"filesystem","line_end":23,"severity":"medium","line_start":23},{"id":"external_commands:scripts/brewpage-lib.sh:65:ruby-shell-backtick-execution","file":"scripts/brewpage-lib.sh","pattern":"Ruby/shell backtick execution","snippet":"> Use `brewpage-run.sh update` with the saved target. A rejected update does not create a replacemen","category":"external_commands","line_end":65,"severity":"medium","line_start":65},{"id":"external_commands:scripts/brewpage-lib.sh:74: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":74,"severity":"medium","line_start":74},{"id":"external_commands:scripts/brewpage-lib.sh:194: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":194,"severity":"medium","line_start":194},{"id":"external_commands:scripts/brewpage-lib.sh:292:ruby-shell-backtick-execution","file":"scripts/brewpage-lib.sh","pattern":"Ruby/shell backtick execution","snippet":"| $body.link | strings | select(test(\"^https://[A-Za-z0-9.-]+(?:/[^[:space:][:cntrl:]#|`]*|[?][^[:sp","category":"external_commands","line_end":292,"severity":"medium","line_start":292},{"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:43:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"BP_SAFE_VERSION=$(cat \"$HERE/../VERSION\")","category":"external_commands","line_end":43,"severity":"medium","line_start":43},{"id":"external_commands:scripts/brewpage-lib.sh:48:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"BP_HISTORY_ROOT=$(python3 -I -S \"$HERE/history.py\" state-root \"$BP_ROOT\") || return 1","category":"external_commands","line_end":48,"severity":"medium","line_start":48},{"id":"external_commands:scripts/brewpage-lib.sh:75: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 \"$7\"","category":"external_commands","line_end":75,"severity":"medium","line_start":75},{"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:214: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":214,"severity":"medium","line_start":214},{"id":"external_commands:scripts/brewpage-lib.sh:230:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"selected=$(bp_history select \"$intent\" \"$target\" \"$BP_OWNER_HEADER_FILE\") || return 1","category":"external_commands","line_end":230,"severity":"medium","line_start":230},{"id":"external_commands:scripts/brewpage-lib.sh:233: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":233,"severity":"medium","line_start":233},{"id":"external_commands:scripts/brewpage-lib.sh:239: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":244,"severity":"medium","line_start":239},{"id":"external_commands:scripts/brewpage-lib.sh:306:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"status=$(bp_response_status) || return 1","category":"external_commands","line_end":306,"severity":"medium","line_start":306},{"id":"external_commands:scripts/brewpage-lib.sh:307:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"url=$(bp_receipt_link \"$response\" \"$status\" \"$method\" \"$endpoint\") || url=\"\"","category":"external_commands","line_end":307,"severity":"medium","line_start":307},{"id":"external_commands:scripts/brewpage-lib.sh:323:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"token=$(printf '%s' \"$response\" | jq -er '.ownerToken | if . == null then \"\" else strings | select(t","category":"external_commands","line_end":323,"severity":"medium","line_start":323},{"id":"external_commands:scripts/brewpage-lib.sh:332:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"owner_api=$(printf '%s' \"$response\" | jq -r '.ownerLink')","category":"external_commands","line_end":332,"severity":"medium","line_start":332},{"id":"external_commands:scripts/brewpage-lib.sh:333: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":333,"severity":"medium","line_start":333},{"id":"external_commands:scripts/brewpage-lib.sh:334: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":335,"severity":"medium","line_start":334},{"id":"external_commands:scripts/brewpage-lib.sh:339:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"fcount=$(printf '%s' \"$response\" | jq -r '(.fileCount | numbers) // \"?\"')","category":"external_commands","line_end":339,"severity":"medium","line_start":339},{"id":"external_commands:scripts/brewpage-lib.sh:384:shell-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Shell command substitution","snippet":"digest=$(python3 - \"$zip\" <<'PY'","category":"external_commands","line_end":386,"severity":"medium","line_start":384},{"id":"external_commands:scripts/brewpage-lib.sh:403: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":403,"severity":"medium","line_start":403},{"id":"external_commands:scripts/brewpage-lib.sh:74: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":194,"severity":"medium","line_start":74},{"id":"external_commands:scripts/brewpage-lib.sh:194:template-literal-with-command-substitution","file":"scripts/brewpage-lib.sh","pattern":"Template literal with command substitution","snippet":"# A function has its own positional parameters, so no `set --` juggling is needed.","category":"external_commands","line_end":292,"severity":"medium","line_start":194},{"id":"network:scripts/brewpage-lib.sh:195:http-client-library","file":"scripts/brewpage-lib.sh","pattern":"HTTP client library","snippet":"bp_request() {","category":"network","line_end":195,"severity":"low","line_start":195},{"id":"network:scripts/brewpage-lib.sh:237:http-client-library","file":"scripts/brewpage-lib.sh","pattern":"HTTP client library","snippet":"bp_operation_request() {","category":"network","line_end":237,"severity":"low","line_start":237},{"id":"network:scripts/brewpage-lib.sh:45:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"BP_UA=\"BrewPageSkillstoreSafe/$BP_SAFE_VERSION (+https://brewpage.app)\"","category":"network","line_end":45,"severity":"low","line_start":45},{"id":"network:scripts/brewpage-lib.sh:199:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"https://brewpage.app/api/*) : ;;","category":"network","line_end":199,"severity":"low","line_start":199},{"id":"network:scripts/brewpage-lib.sh:285:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"| .ownerLink | strings | capture(\"^https://brewpage\\\\.app/api/(?<kind>html|json|files|sites)/(?<ns>[","category":"network","line_end":285,"severity":"low","line_start":285},{"id":"network:scripts/brewpage-lib.sh:288:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"| (\"https://brewpage.app/api/\" + $owner.kind) as $api","category":"network","line_end":288,"severity":"low","line_start":288},{"id":"network:scripts/brewpage-lib.sh:290:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"| select(($api + $target) == $endpoint or ($owner.kind == \"html\" and $endpoint == (\"https://brewpage","category":"network","line_end":290,"severity":"low","line_start":290},{"id":"network:scripts/brewpage-lib.sh:292:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"| $body.link | strings | select(test(\"^https://[A-Za-z0-9.-]+(?:/[^[:space:][:cntrl:]#|`]*|[?][^[:sp","category":"network","line_end":292,"severity":"low","line_start":292},{"id":"network:scripts/brewpage-lib.sh:335:hardcoded-url","file":"scripts/brewpage-lib.sh","pattern":"Hardcoded URL","snippet":"'{origin:\"https://brewpage.app\",ownerApi:$api,readerUrl:.link,ownerToken:((.ownerToken | strings | s","category":"network","line_end":335,"severity":"low","line_start":335},{"id":"filesystem:scripts/brewpage-lib.sh:43:path-traversal-sequence","file":"scripts/brewpage-lib.sh","pattern":"Path traversal sequence","snippet":"BP_SAFE_VERSION=$(cat \"$HERE/../VERSION\")","category":"filesystem","line_end":43,"severity":"high","line_start":43},{"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: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:60: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":60,"severity":"low","line_start":60},{"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:176: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":176,"severity":"low","line_start":176},{"id":"filesystem:scripts/brewpage-lib.sh:188: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":188,"severity":"low","line_start":188},{"id":"filesystem:scripts/brewpage-lib.sh:275:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"printf '%s' \"$response\" | jq -ser --arg status \"$status\" --arg method \"$method\" --arg endpoint \"${en","category":"filesystem","line_end":275,"severity":"low","line_start":275},{"id":"filesystem:scripts/brewpage-lib.sh:296:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"' 2>/dev/null | python3 -I -S \"$HERE/history.py\" reader-check 2>/dev/null","category":"filesystem","line_end":296,"severity":"low","line_start":296},{"id":"filesystem:scripts/brewpage-lib.sh:320: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 ([.isOwner, .result.isOwner, .res","category":"filesystem","line_end":320,"severity":"low","line_start":320},{"id":"filesystem:scripts/brewpage-lib.sh:323:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"token=$(printf '%s' \"$response\" | jq -er '.ownerToken | if . == null then \"\" else strings | select(t","category":"filesystem","line_end":323,"severity":"low","line_start":323},{"id":"filesystem:scripts/brewpage-lib.sh:334: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":334,"severity":"low","line_start":334},{"id":"filesystem:scripts/brewpage-lib.sh:370:standard-device-file-access","file":"scripts/brewpage-lib.sh","pattern":"Standard device file access","snippet":"(select(.result.action == \"created_missing_assets\") | \"NOTICE: the HTML refers to assets outside thi","category":"filesystem","line_end":370,"severity":"low","line_start":370},{"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:286:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"| select($body.id == $owner.id and $body.namespace == $owner.ns)","category":"blocker","line_end":286,"severity":"low","line_start":286},{"id":"blocker:scripts/brewpage-lib.sh:289:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"| (if $method == \"PUT\" then \"/\" + $owner.ns + \"/\" + $owner.id else \"\" end) as $target","category":"blocker","line_end":289,"severity":"low","line_start":289},{"id":"blocker:scripts/brewpage-lib.sh:324:system-reconnaissance","file":"scripts/brewpage-lib.sh","pattern":"System reconnaissance","snippet":"echo 'FAILED: publication receipt carries invalid owner proof; verify the outcome before another wri","category":"blocker","line_end":324,"severity":"low","line_start":324},{"id":"blocker:scripts/brewpage-lib.sh:389: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":389,"severity":"low","line_start":389},{"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:25: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":25,"severity":"medium","line_start":25},{"id":"external_commands:scripts/brewpage-run.sh:56:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"abs=$(cd \"$p\" && pwd -P)","category":"external_commands","line_end":56,"severity":"medium","line_start":56},{"id":"external_commands:scripts/brewpage-run.sh:58: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":58,"severity":"medium","line_start":58},{"id":"external_commands:scripts/brewpage-run.sh:61: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":61,"severity":"medium","line_start":61},{"id":"external_commands:scripts/brewpage-run.sh:64: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":64,"severity":"medium","line_start":64},{"id":"external_commands:scripts/brewpage-run.sh:65: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":65,"severity":"medium","line_start":65},{"id":"external_commands:scripts/brewpage-run.sh:67: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":67,"severity":"medium","line_start":67},{"id":"external_commands:scripts/brewpage-run.sh:73: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":73,"severity":"medium","line_start":73},{"id":"external_commands:scripts/brewpage-run.sh:74: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":74,"severity":"medium","line_start":74},{"id":"external_commands:scripts/brewpage-run.sh:85: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":85,"severity":"medium","line_start":85},{"id":"external_commands:scripts/brewpage-run.sh:111: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":113,"severity":"medium","line_start":111},{"id":"external_commands:scripts/brewpage-run.sh:185: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":187,"severity":"medium","line_start":185},{"id":"external_commands:scripts/brewpage-run.sh:190: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":191,"severity":"medium","line_start":190},{"id":"external_commands:scripts/brewpage-run.sh:213: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":213,"severity":"medium","line_start":213},{"id":"external_commands:scripts/brewpage-run.sh:214: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":214,"severity":"medium","line_start":214},{"id":"external_commands:scripts/brewpage-run.sh:215: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":215,"severity":"medium","line_start":215},{"id":"external_commands:scripts/brewpage-run.sh:258: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":258,"severity":"medium","line_start":258},{"id":"external_commands:scripts/brewpage-run.sh:340:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"response=$(bp_request \"$method\" \"$endpoint\" -H \"Content-Type: application/json\" --data-binary @\"$BP_","category":"external_commands","line_end":340,"severity":"medium","line_start":340},{"id":"external_commands:scripts/brewpage-run.sh:346:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"response=$(bp_request \"$method\" \"$endpoint\" -H \"Content-Type: application/json\" --data-binary @\"$con","category":"external_commands","line_end":346,"severity":"medium","line_start":346},{"id":"external_commands:scripts/brewpage-run.sh:351: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":351,"severity":"medium","line_start":351},{"id":"external_commands:scripts/brewpage-run.sh:360: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":360,"severity":"medium","line_start":360},{"id":"external_commands:scripts/brewpage-run.sh:361:shell-command-substitution","file":"scripts/brewpage-run.sh","pattern":"Shell command substitution","snippet":"[ \"$(bp_response_status)\" = 200 ] || die \"cannot verify existing site entry; no replacement sent\"","category":"external_commands","line_end":361,"severity":"medium","line_start":361},{"id":"external_commands:scripts/brewpage-run.sh:362: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":362,"severity":"medium","line_start":362},{"id":"external_commands:scripts/brewpage-run.sh:366: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":366,"severity":"medium","line_start":366},{"id":"external_commands:scripts/brewpage-run.sh:368: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":368,"severity":"medium","line_start":368},{"id":"network:scripts/brewpage-run.sh:85: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":85,"severity":"low","line_start":85},{"id":"network:scripts/brewpage-run.sh:319: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":319,"severity":"low","line_start":319},{"id":"network:scripts/brewpage-run.sh:321: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":321,"severity":"low","line_start":321},{"id":"network:scripts/brewpage-run.sh:325: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":325,"severity":"low","line_start":325},{"id":"filesystem:scripts/brewpage-run.sh:236: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":236,"severity":"medium","line_start":236},{"id":"filesystem:scripts/brewpage-run.sh:74: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":74,"severity":"low","line_start":74},{"id":"filesystem:scripts/brewpage-run.sh:83: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":83,"severity":"low","line_start":83},{"id":"filesystem:scripts/brewpage-run.sh:89: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":89,"severity":"low","line_start":89},{"id":"filesystem:scripts/brewpage-run.sh:124: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":124,"severity":"low","line_start":124},{"id":"filesystem:scripts/brewpage-run.sh:226: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":226,"severity":"low","line_start":226},{"id":"filesystem:scripts/brewpage-run.sh:258: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":258,"severity":"low","line_start":258},{"id":"filesystem:scripts/brewpage-run.sh:344: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":344,"severity":"low","line_start":344},{"id":"filesystem:scripts/brewpage-run.sh:362: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":362,"severity":"low","line_start":362},{"id":"filesystem:scripts/brewpage-run.sh:114: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":114,"severity":"medium","line_start":114},{"id":"filesystem:scripts/brewpage-run.sh:363: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":363,"severity":"medium","line_start":363},{"id":"blocker:scripts/brewpage-run.sh:117: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":117,"severity":"low","line_start":117},{"id":"blocker:scripts/brewpage-run.sh:262:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"local id pwmode=none","category":"blocker","line_end":262,"severity":"low","line_start":262},{"id":"blocker:scripts/brewpage-run.sh:280:system-reconnaissance","file":"scripts/brewpage-run.sh","pattern":"System reconnaissance","snippet":"[ -f \"$content\" ] || die \"run $id has no staged text\"","category":"blocker","line_end":280,"severity":"low","line_start":280},{"id":"blocker:scripts/brewpage-run.sh:344: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":344,"severity":"low","line_start":344},{"id":"blocker:scripts/brewpage-run.sh:363: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":363,"severity":"low","line_start":363},{"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:161:ruby-shell-backtick-execution","file":"scripts/history.py","pattern":"Ruby/shell backtick execution","snippet":"if target is None or not isinstance(value, str) or not re.fullmatch(r'https://[A-Za-z0-9.-]+(?:[/?][","category":"external_commands","line_end":182,"severity":"medium","line_start":161},{"id":"external_commands:scripts/history.py:182: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":184,"severity":"medium","line_start":182},{"id":"external_commands:scripts/history.py:247: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":247,"severity":"medium","line_start":247},{"id":"network:scripts/history.py:27:hardcoded-url","file":"scripts/history.py","pattern":"Hardcoded URL","snippet":"OWNER_ORIGIN = 'https://brewpage.app'","category":"network","line_end":27,"severity":"low","line_start":27},{"id":"network:scripts/history.py:161:hardcoded-url","file":"scripts/history.py","pattern":"Hardcoded URL","snippet":"if target is None or not isinstance(value, str) or not re.fullmatch(r'https://[A-Za-z0-9.-]+(?:[/?][","category":"network","line_end":161,"severity":"low","line_start":161},{"id":"network:scripts/history.py:174:hardcoded-url","file":"scripts/history.py","pattern":"Hardcoded URL","snippet":"reader = re.fullmatch(r'\\[(https://[^\\]\\s]+)\\]\\(\\1\\)', parts[1])","category":"network","line_end":174,"severity":"low","line_start":174},{"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:119:python-os-file-operations","file":"scripts/history.py","pattern":"Python os file operations","snippet":"os.makedirs(base, mode=0o700, exist_ok=True)","category":"filesystem","line_end":119,"severity":"medium","line_start":119},{"id":"filesystem:scripts/history.py:400:python-os-file-operations","file":"scripts/history.py","pattern":"Python os file operations","snippet":"os.unlink(PENDING, dir_fd=directory)","category":"filesystem","line_end":400,"severity":"medium","line_start":400},{"id":"filesystem:scripts/history.py:442:python-os-file-operations","file":"scripts/history.py","pattern":"Python os file operations","snippet":"os.unlink(RECOVERY, dir_fd=directory)","category":"filesystem","line_end":442,"severity":"medium","line_start":442},{"id":"filesystem:scripts/history.py:444:python-os-file-operations","file":"scripts/history.py","pattern":"Python os file operations","snippet":"os.unlink(PENDING, dir_fd=directory)","category":"filesystem","line_end":444,"severity":"medium","line_start":444},{"id":"filesystem:scripts/history.py:446:python-os-file-operations","file":"scripts/history.py","pattern":"Python os file operations","snippet":"os.unlink(RESOLUTION, dir_fd=directory)","category":"filesystem","line_end":446,"severity":"medium","line_start":446},{"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:116:python-environment-access","file":"scripts/history.py","pattern":"Python environment access","snippet":"base = os.environ.get('XDG_STATE_HOME') or os.path.join(home, '.local', 'state')","category":"env_access","line_end":116,"severity":"low","line_start":116},{"id":"env_access:scripts/history.py:368:python-environment-access","file":"scripts/history.py","pattern":"Python environment access","snippet":"operation = os.environ.get('BREWPAGE_OPERATION_ID', '')","category":"env_access","line_end":368,"severity":"low","line_start":368},{"id":"obfuscation:scripts/history.py:161:hex-encoded-characters","file":"scripts/history.py","pattern":"Hex-encoded characters","snippet":"if target is None or not isinstance(value, str) or not re.fullmatch(r'https://[A-Za-z0-9.-]+(?:[/?][","category":"obfuscation","line_end":161,"severity":"high","line_start":161},{"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:124:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if info.st_uid not in (0, os.getuid()) or (info.st_mode & 0o022 and not (info.st_uid == 0 and info.s","category":"blocker","line_end":124,"severity":"low","line_start":124},{"id":"blocker:scripts/history.py:132:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"work_id = hashlib.sha256(os.fsencode(os.path.realpath(workspace))).hexdigest()","category":"blocker","line_end":132,"severity":"low","line_start":132},{"id":"blocker:scripts/history.py:144:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if info.st_uid != os.getuid() or stat.S_IMODE(info.st_mode) != 0o700:","category":"blocker","line_end":144,"severity":"low","line_start":144},{"id":"blocker:scripts/history.py:162:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('receipt needs an official target and valid reader URL')","category":"blocker","line_end":162,"severity":"low","line_start":162},{"id":"blocker:scripts/history.py:164:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if parsed.hostname.rstrip('.').lower() == 'brewpage.app' and (parsed.path != f'/{target[2]}/{target[","category":"blocker","line_end":164,"severity":"low","line_start":164},{"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:242: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":242,"severity":"low","line_start":242},{"id":"blocker:scripts/history.py:252:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid recovery receipt size')","category":"blocker","line_end":252,"severity":"low","line_start":252},{"id":"blocker:scripts/history.py:256:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid recovery receipt origin')","category":"blocker","line_end":256,"severity":"low","line_start":256},{"id":"blocker:scripts/history.py:263:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid recovery receipt proof')","category":"blocker","line_end":263,"severity":"low","line_start":263},{"id":"blocker:scripts/history.py:290:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid pending create')","category":"blocker","line_end":290,"severity":"low","line_start":290},{"id":"blocker:scripts/history.py:294:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid pending authority')","category":"blocker","line_end":294,"severity":"low","line_start":294},{"id":"blocker:scripts/history.py:320:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid reconciliation')","category":"blocker","line_end":320,"severity":"low","line_start":320},{"id":"blocker:scripts/history.py:334:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid reconciliation outcome')","category":"blocker","line_end":334,"severity":"low","line_start":334},{"id":"blocker:scripts/history.py:359:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"if info.st_uid != os.getuid() or stat.S_IMODE(info.st_mode) != 0o700:","category":"blocker","line_end":359,"severity":"low","line_start":359},{"id":"blocker:scripts/history.py:387:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid pending request')","category":"blocker","line_end":387,"severity":"low","line_start":387},{"id":"blocker:scripts/history.py:428:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('publication does not carry valid proof')","category":"blocker","line_end":428,"severity":"low","line_start":428},{"id":"blocker:scripts/history.py:433:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid history write method')","category":"blocker","line_end":433,"severity":"low","line_start":433},{"id":"blocker:scripts/history.py:435:system-reconnaissance","file":"scripts/history.py","pattern":"System reconnaissance","snippet":"raise ValueError('invalid owner storage operation')","category":"blocker","line_end":435,"severity":"low","line_start":435},{"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:392:process-spawn","file":"scripts/publish.mjs","pattern":"Process spawn","snippet":"const child = spawn(bin, argv, { cwd: options.cwd, env: options.env, stdio: ['pipe', 'ignore', 'igno","category":"external_commands","line_end":392,"severity":"high","line_start":392},{"id":"external_commands:scripts/publish.mjs:324:synchronous-spawn","file":"scripts/publish.mjs","pattern":"Synchronous spawn","snippet":"const r = spawnSync('unzip', ['-tq', zipPath], { env: archiveEnv, encoding: 'utf8', maxBuffer: LIST_","category":"external_commands","line_end":324,"severity":"high","line_start":324},{"id":"external_commands:scripts/publish.mjs:486: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":486,"severity":"high","line_start":486},{"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: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:234:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"console.log(`FAILED: ${msg}`);","category":"external_commands","line_end":234,"severity":"medium","line_start":234},{"id":"external_commands:scripts/publish.mjs:244: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":244,"severity":"medium","line_start":244},{"id":"external_commands:scripts/publish.mjs:254: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":254,"severity":"medium","line_start":254},{"id":"external_commands:scripts/publish.mjs:288: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":288,"severity":"medium","line_start":288},{"id":"external_commands:scripts/publish.mjs:300: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":300,"severity":"medium","line_start":300},{"id":"external_commands:scripts/publish.mjs:309: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":309,"severity":"medium","line_start":309},{"id":"external_commands:scripts/publish.mjs:318: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":318,"severity":"medium","line_start":318},{"id":"external_commands:scripts/publish.mjs:319: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":319,"severity":"medium","line_start":319},{"id":"external_commands:scripts/publish.mjs:320: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":320,"severity":"medium","line_start":320},{"id":"external_commands:scripts/publish.mjs:327:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"return why ? `archive could not be checked: ${why}` : '';","category":"external_commands","line_end":327,"severity":"medium","line_start":327},{"id":"external_commands:scripts/publish.mjs:340: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":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":"for (const n of names) console.log(`  ${n}`);","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(`FILES: ${names.length}`);","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(`BYTES: ${bytes}`);","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":"console.log(`ENTRY: ${entry}`);","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":"const skippedSummary = [...skipped, ...(protectedSkipped ? [`${protectedSkipped} protected credentia","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":"console.log(`SKIPPED: ${skipped.length + protectedSkipped}${skippedSummary.length ? ` (${skippedSumm","category":"external_commands","line_end":346,"severity":"medium","line_start":346},{"id":"external_commands:scripts/publish.mjs:347: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":347,"severity":"medium","line_start":347},{"id":"external_commands:scripts/publish.mjs:349: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":349,"severity":"medium","line_start":349},{"id":"external_commands:scripts/publish.mjs:351: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":351,"severity":"medium","line_start":351},{"id":"external_commands:scripts/publish.mjs:360: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":360,"severity":"medium","line_start":360},{"id":"external_commands:scripts/publish.mjs:372: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":372,"severity":"medium","line_start":372},{"id":"external_commands:scripts/publish.mjs:375: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":375,"severity":"medium","line_start":375},{"id":"external_commands:scripts/publish.mjs:423:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"cwd: snapshot, env: archiveEnv, input: `${kept.join('\\n')}\\n`, encoding: 'utf8',","category":"external_commands","line_end":423,"severity":"medium","line_start":423},{"id":"external_commands:scripts/publish.mjs:432: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":432,"severity":"medium","line_start":432},{"id":"external_commands:scripts/publish.mjs:438:ruby-shell-backtick-execution","file":"scripts/publish.mjs","pattern":"Ruby/shell backtick execution","snippet":"die(`${zipWhy} — no archive produced`);","category":"external_commands","line_end":438,"severity":"medium","line_start":438},{"id":"external_commands:scripts/publish.mjs:450: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":450,"severity":"medium","line_start":450},{"id":"external_commands:scripts/publish.mjs:458: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":458,"severity":"medium","line_start":458},{"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:155:synchronous-file-operations","file":"scripts/publish.mjs","pattern":"Synchronous file operations","snippet":"const data = readFileSync(zipPath);","category":"filesystem","line_end":155,"severity":"medium","line_start":155},{"id":"filesystem:scripts/publish.mjs:277: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":277,"severity":"medium","line_start":277},{"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:375: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":375,"severity":"low","line_start":375},{"id":"filesystem:scripts/publish.mjs:416:temp-file-creation","file":"scripts/publish.mjs","pattern":"Temp file creation","snippet":"snapshot = mkdtempSync(join(tmpdir(), 'brewpage-pack-'));","category":"filesystem","line_end":416,"severity":"low","line_start":416},{"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: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":"env_access:scripts/publish.mjs:307: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":307,"severity":"low","line_start":307},{"id":"env_access:scripts/publish.mjs:308: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":308,"severity":"low","line_start":308},{"id":"env_access:scripts/publish.mjs:307: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":307,"severity":"low","line_start":307},{"id":"env_access:scripts/publish.mjs:308: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":308,"severity":"low","line_start":308},{"id":"env_access:scripts/publish.mjs:313:environment-variable-object","file":"scripts/publish.mjs","pattern":"Environment variable object","snippet":"const archiveEnv = { ...process.env };","category":"env_access","line_end":313,"severity":"low","line_start":313},{"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 = /^(?:brewpage-publish-safe|\\.env(?:\\..*)?|\\.brewpage-(?:[a-f0-9]{24}|owner.*)|id","category":"sensitive","line_end":41,"severity":"high","line_start":41},{"id":"sensitive:scripts/publish.mjs:307: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":307,"severity":"high","line_start":307},{"id":"sensitive:scripts/publish.mjs:308: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":308,"severity":"high","line_start":308},{"id":"sensitive:scripts/publish.mjs:313:environment-file-access","file":"scripts/publish.mjs","pattern":"Environment file access","snippet":"const archiveEnv = { ...process.env };","category":"sensitive","line_end":313,"severity":"high","line_start":313},{"id":"sensitive:scripts/publish.mjs:392:environment-file-access","file":"scripts/publish.mjs","pattern":"Environment file access","snippet":"const child = spawn(bin, argv, { cwd: options.cwd, env: options.env, stdio: ['pipe', 'ignore', 'igno","category":"sensitive","line_end":392,"severity":"high","line_start":392},{"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: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:159:system-reconnaissance","file":"scripts/publish.mjs","pattern":"System reconnaissance","snippet":"if (end < floor) return rejected('archive has no valid central directory');","category":"blocker","line_end":159,"severity":"low","line_start":159},{"id":"blocker:scripts/publish.mjs:483: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":483,"severity":"low","line_start":483},{"id":"external_commands:SKILL.md:14:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"Use `bash ${CLAUDE_SKILL_DIR}/scripts/brewpage-run.sh` with the installed skill path and the relevan","category":"external_commands","line_end":14,"severity":"medium","line_start":14},{"id":"external_commands:SKILL.md:16:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"For a site, review its exact archive manifest before authorizing flagged files. A `CONFIRM` result i","category":"external_commands","line_end":16,"severity":"medium","line_start":16},{"id":"external_commands:SKILL.md:18:ruby-shell-backtick-execution","file":"SKILL.md","pattern":"Ruby/shell backtick execution","snippet":"After `OWNER TOKEN SAVED` or `OWNER TOKEN REUSED`, report the confirmed reader URL and whether owner","category":"external_commands","line_end":18,"severity":"medium","line_start":18},{"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 copyright attribution in the license, not a network request.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:README.md:23:hidden-file-in-home-directory","reason":"The README documents the app state directory, not access to unrelated user files. The history helper checks ownership and restrictive permissions.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:README.md:23:hidden-file-access","reason":"This is documentation for the private BrewPage state location. It does not instruct the agent to read or publish unrelated hidden files.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:65:ruby-shell-backtick-execution","reason":"The command name is Markdown inside a quoted here-document delimiter, which prevents expansion.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:74: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:194:ruby-shell-backtick-execution","reason":"The backticks in the shell comment quote a command name and are not evaluated.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:292:ruby-shell-backtick-execution","reason":"The backtick is an excluded character in a regex inside a single-quoted jq program.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:8:shell-command-substitution","reason":"The substitution captures the physical directory from quoted cd and fixed pwd calls. The path is not evaluated as shell code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:9:shell-command-substitution","reason":"The substitution resolves HOME to compare directory identities. It does not read its contents or execute the path.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:10:shell-command-substitution","reason":"The substitution resolves the configured profile directory for comparison without reading profile contents.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:21:shell-command-substitution","reason":"The fixed git rev-parse call locates the workspace. Its output is used as a path, not evaluated as a command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:32:shell-command-substitution","reason":"The fixed dirname call derives the parent of a quoted workspace path.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:37:shell-command-substitution","reason":"The bundled helper selects a workspace root and stores its output as data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:43:shell-command-substitution","reason":"A fixed relative path reads the bundled VERSION file, and the value must match a numeric version format.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:48:shell-command-substitution","reason":"The bundled history helper runs in Python isolated mode. The quoted workspace root is an argument, and the output is used as a directory path.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:75:shell-command-substitution","reason":"The date command uses a constant UTC format to populate a history timestamp.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:133:shell-command-substitution","reason":"The find call checks one run directory for owner-only mode and does not search its contents.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:214:shell-command-substitution","reason":"The substitution captures a response from the documented BrewPage API. The request arguments are passed separately and the response is not evaluated.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:230:shell-command-substitution","reason":"The bundled history helper selects a saved owner using discrete arguments. It returns an API target and writes the proof separately to a private header file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:233:shell-command-substitution","reason":"Isolated Python generates a random operation identifier from fixed code. No user data becomes code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:239:shell-command-substitution","reason":"Isolated Python hashes staged data and builds a pending request record. Payload and proof inputs are treated as data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:306:shell-command-substitution","reason":"The wrapper reads the local HTTP status file; its value is not evaluated as shell code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:307:shell-command-substitution","reason":"The response is parsed by the receipt helper; the resulting link is treated as a string. Link origin validation is covered separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:323:shell-command-substitution","reason":"A fixed jq filter extracts an owner token of the expected format into a shell variable without executing it.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:332:shell-command-substitution","reason":"The fixed jq filter extracts an owner API field as data after the receipt target check.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:333:shell-command-substitution","reason":"The fixed jq program serializes selected response fields for private history rather than evaluating them.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:334:shell-command-substitution","reason":"The fixed jq program assembles a private recovery receipt; proof is read as data from the staged header.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:339:shell-command-substitution","reason":"The fixed jq filter reads a numeric file count for the status message.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:384:shell-command-substitution","reason":"The here-document hashes a validated archive and never interpolates the archive path into Python code. Interpreter isolation is covered separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:403:shell-command-substitution","reason":"The fixed sed program parses the manifest as text rather than executing it. The trust placed in that text is covered separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:74:template-literal-with-command-substitution","reason":"The single-quoted format contains Markdown delimiters, not an executable template.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-lib.sh:194:template-literal-with-command-substitution","reason":"This is a shell comment, not a template or command substitution.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:195:http-client-library","reason":"The wrapper sends the approved payload and optional proof to the documented HTTPS API. No alternate destination is selected from the response.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:237:http-client-library","reason":"The operation helper hashes a staged payload and parses a URL locally. It has no HTTP client call.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:45:hardcoded-url","reason":"This URL is part of the documented client User-Agent string and is not used as a destination on this line.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:199:hardcoded-url","reason":"The literal is a destination guard that limits requests to the first-party HTTPS API prefix.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:285:hardcoded-url","reason":"The regex accepts only the official owner API origin and expected publication path structure.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:288:hardcoded-url","reason":"The literal builds an expected owner API base for a response check; it does not initiate a request.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:290:hardcoded-url","reason":"The expression compares the returned owner API with the actual request endpoint and allowed file-to-page conversion.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:292:hardcoded-url","reason":"There is no hardcoded destination here. The regex checks a reader link, and its permissive host validation is covered separately.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-lib.sh:335:hardcoded-url","reason":"The literal records the expected origin in a private recovery object, not an additional request destination.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:43:path-traversal-sequence","reason":"The fixed parent segment locates the installed skill VERSION relative to its scripts directory, not relative to user input.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:92:path-traversal-sequence","reason":"The parent directory patterns are rejection cases. The archive helper also checks entry paths before use.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:10:hidden-file-access","reason":"The expression compares resolved directory paths so a profile is not mistaken for a workspace.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:14:hidden-file-access","reason":"The comment describes workspace marker checks, not reads of hidden configuration contents.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:28:hidden-file-access","reason":"The tests check whether workspace marker directories exist and do not inspect files inside them.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:98:hidden-file-access","reason":"The comment describes HTML extensions, not access to a hidden file.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:103:hidden-file-access","reason":"The comment describes Markdown extensions and a rendering route, not hidden file access.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:8:standard-device-file-access","reason":"The path check discards cd diagnostics with /dev/null and does not read any device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:9:standard-device-file-access","reason":"The path check discards cd diagnostics with /dev/null and does not read any device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:10:standard-device-file-access","reason":"The path check discards cd diagnostics with /dev/null and does not read any device data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:21:standard-device-file-access","reason":"The fixed Git query redirects diagnostics to /dev/null only.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:60:standard-device-file-access","reason":"The dependency check discards command lookup output using /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:115:standard-device-file-access","reason":"The UTF-8 check suppresses diagnostics with /dev/null, rather than reading a device.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:160:standard-device-file-access","reason":"The dependency check discards command lookup output using /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:161:standard-device-file-access","reason":"The password format check discards output to avoid printing the value or parser diagnostics.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:176:standard-device-file-access","reason":"The dependency check discards command lookup output using /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:188:standard-device-file-access","reason":"The header is written to a private run file, and /dev/null only suppresses diagnostics.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:275:standard-device-file-access","reason":"When no owner proof file exists, /dev/null provides an empty value to the fixed jq filter.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:296:standard-device-file-access","reason":"The pipeline redirects validation diagnostics to /dev/null, with no device read.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:320:standard-device-file-access","reason":"The ownership predicate discards jq output and uses only the exit status.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:323:standard-device-file-access","reason":"The token parser captures its result privately, and /dev/null suppresses diagnostics.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:334:standard-device-file-access","reason":"When no owner proof file exists, /dev/null provides an empty value to the fixed jq filter.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:370:standard-device-file-access","reason":"The output filter prints limited status fields and suppresses jq errors via /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-lib.sh:121:temp-file-creation","reason":"mktemp creates a unique private run directory under umask 077. The runner validates it and installs cleanup handlers.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/brewpage-lib.sh:110:hex-encoded-characters","reason":"The three hexadecimal bytes match the optional UTF-8 byte order mark. They are not decoded or executed as a payload.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:128:system-reconnaissance","reason":"This branch rejects an invalid local run identifier without querying the host.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:130:system-reconnaissance","reason":"The character allowlist validates the temporary run identifier and performs no discovery.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:153:system-reconnaissance","reason":"The jq expression formats an explicitly supplied password header after rejecting control characters.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:155:system-reconnaissance","reason":"This comment documents the explicit password file argument, not credential discovery.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:286:system-reconnaissance","reason":"The filter cross-checks the publication identity and derives the expected API target from the response.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:289:system-reconnaissance","reason":"The filter cross-checks the publication identity and derives the expected API target from the response.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:324:system-reconnaissance","reason":"The branch reports an invalid owner proof and stops; it does not query system information.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-lib.sh:389:system-reconnaissance","reason":"The metadata checks verify that the archive is a regular file with expected ownership and link count before hashing.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:6:shell-command-substitution","reason":"The substitution locates the installed runner directory using the script path, not an input command string.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:25:shell-command-substitution","reason":"The fixed helper generates a private temporary directory, and its path is captured for cleanup.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:56:shell-command-substitution","reason":"The read-only probe resolves the explicitly selected directory using quoted cd and fixed pwd calls.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:58:shell-command-substitution","reason":"The fixed pipeline lists HTML entries under the selected directory for a local estimate.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:61:shell-command-substitution","reason":"The fixed pipeline orders discovered paths by depth and chooses an entry suggestion without evaluating filenames.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:64:shell-command-substitution","reason":"The commands count files and matching names in the selected directory; no output is evaluated.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:65:shell-command-substitution","reason":"The fixed du and cut calls estimate the size of the selected directory.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:67:shell-command-substitution","reason":"The fixed path utilities resolve the user-selected path; it remains data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:73:shell-command-substitution","reason":"The probe counts bytes after the selected file passes the local check. It does not execute the file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:74:shell-command-substitution","reason":"The fixed file command identifies the MIME type of the selected path using a separate argument.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:85:shell-command-substitution","reason":"The fixed GET reads advertised BrewPage limits and passes no local publication data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:111:shell-command-substitution","reason":"The fixed isolated Python program receives text over standard input and appends it to a checked private staging file.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:185:shell-command-substitution","reason":"The bundled offline packer receives the selected directory and exclusions as separate arguments and returns a manifest.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:190:shell-command-substitution","reason":"The bundled offline inspector receives the staged archive path as an argument and does not execute archive content.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:213:shell-command-substitution","reason":"The shell arithmetic only increments a count of selected input arguments. Their contents do not enter the expression.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:214:shell-command-substitution","reason":"The shell arithmetic only increments a count of selected input arguments. Their contents do not enter the expression.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:215:shell-command-substitution","reason":"The shell arithmetic only increments a count of selected input arguments. Their contents do not enter the expression.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:258:shell-command-substitution","reason":"A fixed jq program parses user data as a JSON object. The data does not become a jq filter or shell code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:340:shell-command-substitution","reason":"The wrapper sends staged JSON to the first-party publishing or update endpoint as requested and captures the response as data.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:346:shell-command-substitution","reason":"The wrapper sends the staged JSON input to the documented first-party API and returns response data, not executable text.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:351:shell-command-substitution","reason":"The multipart helper escapes its selected local snapshot path as a form value, and the request stays within the official API.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:360:shell-command-substitution","reason":"The documented first-party metadata request retrieves the existing entry to preserve it during an update.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:361:shell-command-substitution","reason":"The substitution reads a numeric HTTP status and checks for success before continuing.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:362:shell-command-substitution","reason":"The jq filter extracts a string from metadata; the next step checks that it is a safe archive member.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:366:shell-command-substitution","reason":"The fixed jq filter URL-encodes the selected entry instead of inserting it as code or raw URL syntax.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/brewpage-run.sh:368:shell-command-substitution","reason":"The wrapper sends the selected archive and optional state to the official API using explicit form arguments.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-run.sh:85:hardcoded-url","reason":"This is the documented first-party read-only limits endpoint and does not upload a local file.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-run.sh:319:hardcoded-url","reason":"The pattern verifies that the saved API target matches the replacement type before any update request.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-run.sh:321:hardcoded-url","reason":"The pattern checks that a caller-specified namespace matches the selected update target.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/brewpage-run.sh:325:hardcoded-url","reason":"This is the documented first-party write endpoint. Publication kind, namespace, and expiry are restricted before construction.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:236:hidden-file-access","reason":"The comment refers to filename extensions and does not access hidden files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:74:standard-device-file-access","reason":"The MIME probe discards tool diagnostics with /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:83:standard-device-file-access","reason":"The tool availability check discards lookup output with /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:89:standard-device-file-access","reason":"The limits parser prints selected fields and discards error output with /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:124:standard-device-file-access","reason":"Staging diagnostics go to /dev/null; the actual text goes to the checked private run file.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:226:standard-device-file-access","reason":"The tool availability check discards lookup output with /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:258:standard-device-file-access","reason":"The JSON parser sends error output to /dev/null only.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:344:standard-device-file-access","reason":"The JSON syntax check discards diagnostics with /dev/null.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:362:standard-device-file-access","reason":"The metadata parser suppresses errors using /dev/null, not a device read.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:114:python-file-write-append","reason":"The append supports the explicit staging command. It uses a locked descriptor and verifies file type, owner, link count, and mode before writing.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/brewpage-run.sh:363:python-archive-libraries","reason":"The ZIP library checks member names for the existing entry. It does not extract or run archive members.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:117:system-reconnaissance","reason":"The checks protect the staged file by comparing its metadata with the current user and required mode.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:262:system-reconnaissance","reason":"The statement initializes a password mode and does not query user identities.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:280:system-reconnaissance","reason":"The runner checks for the expected staged content file and reports a missing run.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:344:system-reconnaissance","reason":"The command validates selected JSON input and does not collect system data.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/brewpage-run.sh:363:system-reconnaissance","reason":"The check compares a candidate entry to a local archive member list. It does not inventory the host.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/history.py:76:python-subprocess-run","reason":"Git is invoked with a fixed subcommand and discrete arguments, without a shell. Environment effects on repository discovery are covered separately.","verdict":"false_positive","confidence":0.96},{"id":"external_commands:scripts/history.py:161:ruby-shell-backtick-execution","reason":"The backtick is an excluded character inside a Python regular expression.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/history.py:182:ruby-shell-backtick-execution","reason":"The code strips Markdown delimiters and parses JSON; it does not execute the stored text.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/history.py:247:ruby-shell-backtick-execution","reason":"The Python f-string formats a private Markdown history row, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/history.py:27:hardcoded-url","reason":"The constant defines the expected first-party origin for validating owner API paths and receipts.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/history.py:161:hardcoded-url","reason":"This is a URL syntax expression, not an embedded destination. Its host validation is covered separately.","verdict":"false_positive","confidence":0.98},{"id":"network:scripts/history.py:174:hardcoded-url","reason":"The expression parses a saved Markdown link without fetching or navigating to it.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:52:python-file-write-append","reason":"An exclusive non-symlink file in private state is written and atomically renamed to persist the intended record.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:207:python-file-write-append","reason":"The validated token is written only to the intended exclusive 0600 header file used by the runner.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:60:python-os-file-operations","reason":"The unlink removes only a randomly named temporary file relative to the checked state directory.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:119:python-os-file-operations","reason":"The app creates its configured state base with owner-only mode for new directories. Later checks validate the resolved base and state slot.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:400:python-os-file-operations","reason":"The unlink removes a fixed pending-state file after checking the matching operation ID. No caller-selected path is deleted.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:442:python-os-file-operations","reason":"The consumed recovery receipt is a fixed file in the locked state directory and is removed after the history write.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:444:python-os-file-operations","reason":"The unlink clears the fixed pending create record after a retained result or reconciliation.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/history.py:446:python-os-file-operations","reason":"The unlink removes the fixed local reconciliation file only after its result has been written.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/history.py:76:python-environment-access","reason":"The Git safety check inherits repository-discovery overrides from the caller. These can invalidate the check that credential state is outside a Git working tree.","verdict":"confirmed","severity":"medium","confidence":0.94},{"id":"env_access:scripts/history.py:86:python-environment-access","reason":"The presence of GIT_DIR makes the no-Git fallback stop conservatively, rather than exposing the variable or assuming the location is safe.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/history.py:101:python-environment-access","reason":"The variable names an inherited locking descriptor, whose file identity is checked before use.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/history.py:116:python-environment-access","reason":"XDG_STATE_HOME selects the documented local state base and is not transmitted. The helper validates its path and checks state permissions.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/history.py:368:python-environment-access","reason":"The variable is a locally assigned operation identifier used to bind pending state, not a collected secret.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/history.py:161:hex-encoded-characters","reason":"The hex escapes specify a range of disallowed control characters in a regex. They are not a concealed payload.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:38:system-reconnaissance","reason":"The code makes a local file safety check before reading protected state.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:124:system-reconnaissance","reason":"The ancestor owner and permission checks protect the state path and are not reported externally.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:132:system-reconnaissance","reason":"A hash of the resolved workspace path selects its private state slot and is computed locally.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:144:system-reconnaissance","reason":"The check requires the state directory to be owned by the current user and to have mode 0700.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:162:system-reconnaissance","reason":"The exception rejects a malformed reader URL or missing owner API target.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:164:system-reconnaissance","reason":"The branch compares BrewPage reader paths with the saved publication identity. It does not discover or contact hosts.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:234:system-reconnaissance","reason":"This branch rejects a receipt that does not confirm ownership.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:242:system-reconnaissance","reason":"The branch rejects invalid token syntax or a conflicting target before serializing history.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:252:system-reconnaissance","reason":"The check bounds the size of a recovery receipt before JSON parsing.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:256:system-reconnaissance","reason":"The check rejects a receipt when its claimed origin or owner API target is invalid.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:263:system-reconnaissance","reason":"The receipt check rejects some direct disclosures of the owner proof or management URL.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:290:system-reconnaissance","reason":"The exception rejects a malformed local pending operation identifier.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:294:system-reconnaissance","reason":"The code rejects an invalid pending owner-proof digest.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:320:system-reconnaissance","reason":"This branch rejects an unrecognized local reconciliation schema.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:334:system-reconnaissance","reason":"This branch rejects reconciliation outcomes outside the allowed cases.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:359:system-reconnaissance","reason":"The check requires the state directory to be owned by the current user and to have mode 0700.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:387:system-reconnaissance","reason":"The branch rejects a pending record not bound to the local operation.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:428:system-reconnaissance","reason":"The history append refuses rows without exactly one valid owner proof.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:433:system-reconnaissance","reason":"This branch rejects history writes not labeled POST or PUT.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/history.py:435:system-reconnaissance","reason":"This branch stops on unsupported local storage operations.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:4:node-js-child-process-module","reason":"The import supports fixed local ZIP and Python tooling. The code does not launch a shell or treat selected file contents as programs.","verdict":"false_positive","confidence":0.96},{"id":"external_commands:scripts/publish.mjs:392:process-spawn","reason":"The callers pass fixed Python and ZIP executable names with argument arrays and explicit timeouts. Manifest and source data are not evaluated as shell code.","verdict":"false_positive","confidence":0.96},{"id":"external_commands:scripts/publish.mjs:324:synchronous-spawn","reason":"The runner invokes unzip in test-only mode on the selected archive, with an argument array, timeout, and output cap.","verdict":"false_positive","confidence":0.96},{"id":"external_commands:scripts/publish.mjs:486:synchronous-spawn","reason":"Isolated Python executes bundled snapshot code and receives source and output paths as arguments. It copies a verified regular file instead of executing it.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:2:ruby-shell-backtick-execution","reason":"The backticks are in comments and cannot execute commands.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:33:ruby-shell-backtick-execution","reason":"The backticks are in comments and cannot execute commands.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:36:ruby-shell-backtick-execution","reason":"The backticks are in comments and cannot execute commands.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:37:ruby-shell-backtick-execution","reason":"The JavaScript template constructs a fixed directory prefix used in a string comparison.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:49:ruby-shell-backtick-execution","reason":"The template builds a device and inode comparison key from filesystem metadata.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:54:ruby-shell-backtick-execution","reason":"The template builds a device and inode comparison key from filesystem metadata.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:65:ruby-shell-backtick-execution","reason":"This is a fixed JavaScript raw string containing bundled Python snapshot logic. Selected paths are passed separately, not interpolated into that code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:124:ruby-shell-backtick-execution","reason":"This is a fixed JavaScript raw string containing bundled Python snapshot logic. Selected paths are passed separately, not interpolated into that code.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:234:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:244:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:254:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:288:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:300:ruby-shell-backtick-execution","reason":"The backticks are in comments and cannot execute commands.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:309:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:318:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:319:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:320:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:327:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:340:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:341:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:342:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:343:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:344:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:345:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:346:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:347:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:349:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:351:ruby-shell-backtick-execution","reason":"The JavaScript template formats manifest output and does not execute shell commands. Manifest text handling is assessed separately.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:360:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:372:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:375:ruby-shell-backtick-execution","reason":"The backticks are in comments and cannot execute commands.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:423:ruby-shell-backtick-execution","reason":"The template builds a newline-delimited input list for the fixed ZIP tool, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:432:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:438:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:450:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:scripts/publish.mjs:458:ruby-shell-backtick-execution","reason":"The JavaScript template formats a status or diagnostic as a string, not a shell command.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:5:synchronous-file-operations","reason":"The import provides local staging and inspection functions for a command-line tool, not arbitrary execution or remote access.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:155:synchronous-file-operations","reason":"The offline inspector reads a selected archive after checking its size. It parses bytes locally without executing the contents.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:277:hidden-file-access","reason":"This is a filename character check that skips entries with CR or LF. It does not read hidden files.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:5:temp-file-creation","reason":"Importing mkdtempSync does not create a file or expose data.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:375:temp-file-creation","reason":"The comment documents why the controlled ZIP output starts without an empty placeholder.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:416:temp-file-creation","reason":"The packer uses a unique private snapshot directory, applies mode 0700, and removes it in a finally block.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:103:python-file-write-append","reason":"The fixed helper writes bounded selected content to a newly created 0600 snapshot file without following symlinks.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:146:python-shutil-operations","reason":"The copy goes from a validated source descriptor to an exclusive private output descriptor.","verdict":"false_positive","confidence":0.98},{"id":"filesystem:scripts/publish.mjs:101:python-os-file-operations","reason":"The helper creates directories inside the private snapshot only for validated member paths.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:307:environment-variable-access-dot-notation","reason":"PATHEXT is used only for executable discovery on Windows, while the supported workflow uses a POSIX environment.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:308:environment-variable-access-dot-notation","reason":"PATH is consulted for standard local tooling. The search path is not printed or sent to BrewPage.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:307:environment-variable-object","reason":"PATHEXT is used only for executable discovery on Windows, while the supported workflow uses a POSIX environment.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:308:environment-variable-object","reason":"PATH is consulted for standard local tooling. The search path is not printed or sent to BrewPage.","verdict":"false_positive","confidence":0.98},{"id":"env_access:scripts/publish.mjs:313:environment-variable-object","reason":"ZIP utilities inherit the caller environment after only ZIP option defaults are removed. This unnecessarily exposes unrelated environment values to child processes.","verdict":"confirmed","confidence":0.92},{"id":"sensitive:scripts/publish.mjs:40:ssh-private-key-file","reason":"The expression matches suspicious archive member names for review; it does not open or transmit SSH keys.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:40:environment-file-access","reason":"The regex recognizes sensitive filenames during archive review and does not read environment files.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:41:environment-file-access","reason":"The reserved-name expression blocks matching credential inputs instead of reading them.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:307:environment-file-access","reason":"This reads PATHEXT from the process environment, not an environment file.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:308:environment-file-access","reason":"This reads PATH for local tool discovery and does not open an environment file.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:313:environment-file-access","reason":"This copies the process environment, not a dotenv file. Unnecessary inheritance is retained under the environment object finding.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:392:environment-file-access","reason":"The spawn options pass an environment object to fixed local tools. This line does not open or parse an environment file.","verdict":"false_positive","confidence":0.98},{"id":"sensitive:scripts/publish.mjs:31:sqlite-database-file","reason":"The regex matches common system metadata names such as Thumbs.db. It does not open a database.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:88:system-reconnaissance","reason":"This exception rejects invalid paths in the selected bundle.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:99:system-reconnaissance","reason":"The snapshot helper rejects source files with unexpected type, link count, identity, or size.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:139:system-reconnaissance","reason":"The snapshot helper checks owner-only permissions on the staged input and its private parent.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:142:system-reconnaissance","reason":"The snapshot helper checks owner-only permissions on the staged input and its private parent.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:159:system-reconnaissance","reason":"The exception rejects an archive with no valid central directory.","verdict":"false_positive","confidence":0.98},{"id":"blocker:scripts/publish.mjs:483:system-reconnaissance","reason":"The check enforces the current user and private mode for staged content.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:14:ruby-shell-backtick-execution","reason":"The Markdown code span describes an explicit invocation of the bundled runner. Reading the documentation does not execute the command.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:16:ruby-shell-backtick-execution","reason":"The backticks format the literal CONFIRM status in the human approval instructions.","verdict":"false_positive","confidence":0.98},{"id":"external_commands:SKILL.md:18:ruby-shell-backtick-execution","reason":"The code spans name local status messages and the recovery command. They are not executed during Markdown rendering.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/brewpage-lib.sh:130:heuristic-very-high-entropy-string-6-03-bits-lik","reason":"The apparent high entropy comes from a literal list of permitted ASCII characters for a run ID.","verdict":"false_positive","confidence":0.98},{"id":"obfuscation:scripts/publish.mjs:1:heuristic-multiple-bracket-chains-6-jsfuck-obfus","reason":"The cited line is an ordinary Node.js shebang. No JSFuck payload was found in the readable archive helper.","verdict":"false_positive","confidence":0.98}],"semantic_findings":[{"title":"Python Startup Is Not Consistently Isolated","severity":"high","locations":[{"file":"scripts/brewpage-lib.sh","line_end":115,"line_start":108},{"file":"scripts/brewpage-lib.sh","line_end":389,"line_start":382},{"file":"scripts/brewpage-run.sh","line_end":294,"line_start":289}],"confidence":0.96,"description":"Some publish-time helpers start Python without isolated mode. Local module lookup and interpreter startup can execute code outside the installed skill before content validation completes.","confidence_reasoning":"The HTML, UTF-8, and digest helpers omit the interpreter flags used for history and snapshot operations. The runner does not establish a trusted working directory."},{"title":"Archive Review Includes Untrusted Filename Text","severity":"medium","locations":[{"file":"scripts/publish.mjs","line_end":278,"line_start":269},{"file":"scripts/publish.mjs","line_end":352,"line_start":337},{"file":"scripts/brewpage-run.sh","line_end":195,"line_start":181},{"file":"scripts/brewpage-lib.sh","line_end":403,"line_start":397}],"confidence":0.95,"description":"Skipped filenames can enter the review transcript without escaping. The runner also derives the entry point from printed text instead of a separate structured field.","confidence_reasoning":"Names with line breaks can enter the skipped list, which the formatter prints verbatim. The shell later reads an entry value from that same manifest output."},{"title":"Credential Filtering Does Not Inspect File Contents","severity":"medium","locations":[{"file":"scripts/publish.mjs","line_end":20,"line_start":9},{"file":"scripts/publish.mjs","line_end":54,"line_start":39},{"file":"scripts/publish.mjs","line_end":279,"line_start":265},{"file":"scripts/publish.mjs","line_end":498,"line_start":475},{"file":"scripts/brewpage-run.sh","line_end":352,"line_start":339}],"confidence":0.98,"description":"The skill relies on names, file metadata, and known path identities to screen uploads. An approved file can still contain exposed secrets, including inside nested archives.","confidence_reasoning":"The code checks reserved names and selected file identities, not arbitrary payload content. The runner sends selected content to BrewPage after those checks."},{"title":"Password Source Validation Is Not Bound to the Read","severity":"medium","locations":[{"file":"scripts/brewpage-lib.sh","line_end":162,"line_start":155},{"file":"scripts/brewpage-lib.sh","line_end":189,"line_start":177},{"file":"scripts/brewpage-lib.sh","line_end":210,"line_start":205}],"confidence":0.94,"description":"The runner checks the selected password file and later reopens its path. A local replacement can change the password or place unintended data in the publication header.","confidence_reasoning":"The copy uses the path again without retaining the validated descriptor. The later check validates password syntax, not the identity of the source file."},{"title":"Reader Links Are Not Bound to an Approved Host","severity":"medium","locations":[{"file":"scripts/brewpage-lib.sh","line_end":296,"line_start":285},{"file":"scripts/brewpage-lib.sh","line_end":360,"line_start":356},{"file":"scripts/history.py","line_end":166,"line_start":160}],"confidence":0.96,"description":"The receipt checks the official write endpoint but can display an arbitrary HTTPS reader host as confirmed. That can mislead users about where a publication is hosted.","confidence_reasoning":"The reader identity check applies only to the main BrewPage hostname. The runner displays the validated string without requesting it or checking another host binding."}],"subject_marketplace_commit_sha":"6291108d204278f63c302d79d6cba4470218195b","subject_content_hash":"949aa7bb47750db20b76abcf075b18a88b12a80fb414e8c79964803edfe01922","subject_tree_hash":"90d45386e9373be6cc550039b402b6488be556faa6b6baa033495c31ffe596e8","subject_plugin_path":"skills/kochetkov-ma/brewpage-publish-safe","audit_payload_hash":"9c2057176a8bcda9e98e6900ae3a9cdc","confirmed_risk_level":"high","scanner_version":"3.0.0","policy_version":"skillstore-security-audit-policy-v1","subject":{"marketplaceCommitSha":"6291108d204278f63c302d79d6cba4470218195b","contentHash":"949aa7bb47750db20b76abcf075b18a88b12a80fb414e8c79964803edfe01922","treeHash":"90d45386e9373be6cc550039b402b6488be556faa6b6baa033495c31ffe596e8","pluginPath":"skills/kochetkov-ma/brewpage-publish-safe","auditPayloadHash":"9c2057176a8bcda9e98e6900ae3a9cdc"},"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-safe/audits/1/attestation","status":"superseded"},"trust":{"publicState":"public","auditState":"complete","auditCurrentness":null,"confirmedRiskLevel":"high","confirmedFindingCount":5,"capabilityReviewCount":2,"needsReviewCount":0,"falsePositiveCount":0,"agentAutoInstallPolicy":"confirmation_required","manualInstallPolicy":"allowed","artifactSignatureState":"available","attestationState":"superseded","verificationState":"not_verified"},"isLatest":false}}