Skip to content

chore: silence Socket obfuscated-code false positive on libc#3

Merged
kexi merged 1 commit into
mainfrom
chore/socket-ignore-libc-obfuscation
Jun 7, 2026
Merged

chore: silence Socket obfuscated-code false positive on libc#3
kexi merged 1 commit into
mainfrom
chore/socket-ignore-libc-obfuscation

Conversation

@kexi

@kexi kexi commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a repo-root socket.yml disabling the obfuscatedFile alert category. Socket flags cargo/libc as ~90% obfuscated, but libc is the official rust-lang FFI crate pulled transitively by portable-pty/tempfile/rustix/nix — the heuristic trips on its generated per-platform constant tables, not on anything malicious.
  • socket.yml can't scope a rule to one package (dashboard-only), so the category is disabled repo-wide; malware, vulnerability, install-script, and typo-squat detection stay on.

Test plan

  • Socket scan no longer warns on cargo/libc obfuscation
  • Socket still reports other alert categories (malware/vuln/install-script)

Socket flags cargo/libc as ~90% obfuscated, but libc is the official
rust-lang FFI crate pulled transitively by portable-pty, tempfile,
rustix, and nix — unavoidable for a PTY tool. The heuristic trips on
libc's machine-generated per-platform constant tables, not on anything
malicious. socket.yml cannot scope a rule to one package, so disable the
obfuscatedFile category repo-wide; malware/vuln/install-script detection
stays on.

Co-Authored-By: Claude <noreply@anthropic.com>
@kexi kexi merged commit ce3c102 into main Jun 7, 2026
8 checks passed
@kexi kexi deleted the chore/socket-ignore-libc-obfuscation branch June 7, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant