Skip to content

Bash test files (Tree-Sitter) - #320

Open
saniyafatima07 wants to merge 9 commits into
mandiant:masterfrom
saniyafatima07:bash-test
Open

Bash test files (Tree-Sitter)#320
saniyafatima07 wants to merge 9 commits into
mandiant:masterfrom
saniyafatima07:bash-test

Conversation

@saniyafatima07

Copy link
Copy Markdown

Context: PR-3121

  • Adds bash test samples for tree-sitter feature.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this also be named .sh_?

@saniyafatima07 saniyafatima07 Aug 3, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will update it.
Thank you for the review!

@mr-tz

mr-tz commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

please also update .github/check_sample_filenames.py as part of this PR

@saniyafatima07

Copy link
Copy Markdown
Author

@mr-tz I have made the requested changes. Could you please take another look when u get a chance?
Thank you!

@mr-tz

mr-tz commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

CI is complaining - I don't know what you discussed but we should maybe consider storing these in a defanged version? Are these actual malware samples? Would be bad to run them by error (like for all files here of course).

@saniyafatima07

saniyafatima07 commented Aug 4, 2026

Copy link
Copy Markdown
Author

CI is complaining - I don't know what you discussed but we should maybe consider storing these in a defanged version? Are these actual malware samples? Would be bad to run them by error (like for all files here of course).

Sorry about that. The CI failure was due to the filename on my side. I had made a few changes to the sample but forgot to rename it back to its SHA-256 hash, so the checks failed. I have fixed it and the CI should pass now.

Also, yes, these are actual malware samples that I collected from MalwareBazaar for the test suite. I will defang both the scripts. Thank you for the review!

@mr-tz

mr-tz commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Please add documentation on how to add such files / how they are zipped (eg with a password?), then should be good to go.

@saniyafatima07

Copy link
Copy Markdown
Author

Please add documentation on how to add such files / how they are zipped (eg with a password?), then should be good to go.

I’ve added a small section of documentation on how to add the bash script samples. I haven’t password-protected the ZIP files currently. Should I do that as well?

@mr-tz mr-tz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works for me, thanks

@mandiant/capa-dev any other thoughts or concerns?

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