Skip to content

X-Ray: required headers for .ico and .tar (Part of #7187) - #7234

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7187-20261031T0143Z
Oct 31, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7187-20261031T0143Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7187. Checklist: done [c:bdf156b9]

An executable named icon.ico or bundle.tar passed X-Ray: the bypass extensions skip entropy, but a header mismatch still fails, and SecurityLens.MAGIC_BYTES had no entry for either type. Added .ico (00 00 01 00) and an offset-aware tar check (_is_tar_header: ustar at 257, a valid octal header checksum for v7 archives, or an all-zero empty archive). Only X-Ray's scan_binary reads MAGIC_BYTES; the engine scan uses detect_disguised_executable, so no golden bless is expected.

Class / Sibling gaps

Class: an X-Ray bypassed extension with no required header. .ico and .tar were the only bypassed binary types lacking one (.png, .jpg, .jpeg, .gz, .zip have headers); both handled here with tests for real files (ico, ustar, GNU, v7, empty tar) and for ELF/PNG/short bytes under each name. Sibling gaps, none needed by a burned-estate program: .cur/.icns, and inert types X-Ray reads but MAGIC_BYTES omits (.gif, .bmp, .webp, .7z, .bz2, .tgz); .json/.yml skip entropy by design (separate #7187 gap, text types).

Tests

tests/security_auditing/ 794 passed; pr_gates --fast 9/9 pass. The strict xfail for ico/tar moved to the caught list.

🤖 Generated with Claude Code

…behind them fails (Part of #7187)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 31, 2026 01:59
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 02:07
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit b36ce19 into main Oct 31, 2026
92 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7187-20261031T0143Z branch October 31, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant