Add documentation for script analysis - #3139
Open
saniyafatima07 wants to merge 4 commits into
Open
Conversation
saniyafatima07
marked this pull request as draft
August 7, 2026 19:56
saniyafatima07
marked this pull request as ready for review
August 11, 2026 19:24
Comment on lines
+9
to
+14
| | Language | File Extension(s) | Description | | ||
| |------------- |-------------------- |--------------------------------------------| | ||
| | Python | `.py` | Python scripts | | ||
| | C# | `.cs` | C# source files | | ||
| | HTML / ASPX | `.html`, `.aspx` | HTML templates with embedded server-side code | | ||
| | Bash | `.sh` | Bash shell scripts | |
Collaborator
There was a problem hiding this comment.
This is less about documentation and more about implementation. Does capa also accept the defanged variants of these extensions (e.g. .py_). If not, it should, we don't want to force users to use valid file extensions just for capa, especially for malware samples that they don't want to execute. This is low priority right now, so if this needs to be added, please create a new issue to track it.
Collaborator
Author
There was a problem hiding this comment.
@mike-hunhoff Could you suggest a few things that I should add to the documentation?
Also, yes, capa accepts the defanged variants of these extensions.
mike-hunhoff
force-pushed
the
feature/script-analysis
branch
from
August 13, 2026 19:08
d70db63 to
091b508
Compare
saniyafatima07
force-pushed
the
script-docs
branch
from
August 14, 2026 13:33
26cba4d to
86d8db8
Compare
Adds static analysis for script files (C#, Python, ASPX, HTML embedded scripts) using Tree-Sitter feature extractors. Revives and completes work originally introduced in mandiant#1080. Co-authored-by: Edoardo Allegrini <allegrini.1969146@studenti.uniroma1.it> Co-authored-by: Adam Storek <adamstorek@users.noreply.github.com>
mike-hunhoff
force-pushed
the
feature/script-analysis
branch
from
August 14, 2026 15:38
091b508 to
3a94b33
Compare
saniyafatima07
force-pushed
the
script-docs
branch
from
August 14, 2026 21:28
ea290a3 to
2d2d8eb
Compare
mike-hunhoff
force-pushed
the
feature/script-analysis
branch
2 times, most recently
from
August 18, 2026 14:52
10165af to
bffd0f3
Compare
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #3148
References: #3102 #3121
Checklist