FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CM-65436: add SAST fallback ignore-extensions list by mateusz-sterczewski · Pull Request #473 · cycodehq/cycode-cli · GitHub

CM-65436: add SAST fallback ignore-extensions list - #473

Merged
mateusz-sterczewski merged 1 commit into
mainfrom
CM-65436-sast-fallback-ignore-extensions
Jun 16, 2026
Merged

CM-65436: add SAST fallback ignore-extensions list#473
mateusz-sterczewski merged 1 commit into
mainfrom
CM-65436-sast-fallback-ignore-extensions

Conversation

mateusz-sterczewski commented Jun 15, 2026
edited by atlassian Bot
Loading

Copy link
Copy Markdown
Collaborator

Summary

  • When the server returns no scannable extensions for SAST (e.g. the customer has custom rules, so any text file is scannable), the CLI previously relied only on binary detection to filter files.
  • Text-based non-source files — the EICAR test file (.bin) and ClamAV signature databases (.ndb) — slip past binary detection and get uploaded. Object-storage antivirus then quarantines the zip, so the scan service can't find the file and the scan fails with "Could not find uploaded file to scan".
  • Adds a SAST fallback block-list (SAST_SCAN_FILE_EXTENSIONS_TO_IGNORE) used only when no server allow-list is present, plus a one-time debug log when the fallback is hit so this is diagnosable from logs.

Notes

  • When the server does return scannable extensions, the allow-list takes priority and this fallback is never consulted (verified locally).
  • Minimal AV-trigger set: .bin, .ndb, and common ClamAV signature-DB formats.

Jira

CM-65436

When the server returns no scannable extensions for SAST (e.g. the customer
has custom rules, so any text file is scannable), the CLI previously relied
only on binary detection to filter files. Text-based non-source files such as
the EICAR test file (.bin) and ClamAV signature databases (.ndb) slip past
binary detection and get uploaded; object-storage antivirus then quarantines
the zip, so the scan service can't find the file and the scan fails.

Add a SAST fallback block-list (SAST_SCAN_FILE_EXTENSIONS_TO_IGNORE) used only
when no server allow-list is present, plus a one-time debug log when the
fallback is hit so this is diagnosable from logs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mateusz-sterczewski merged commit 1c6435e into main Jun 16, 2026
28 checks passed
mateusz-sterczewski deleted the CM-65436-sast-fallback-ignore-extensions branch June 16, 2026 08:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL