Skip to content

PS: Add a query for CWE-494#371

Open
MathiasVP wants to merge 9 commits into
mainfrom
add-cwe-494-for-ps
Open

PS: Add a query for CWE-494#371
MathiasVP wants to merge 9 commits into
mainfrom
add-cwe-494-for-ps

Conversation

@MathiasVP

Copy link
Copy Markdown
Collaborator

This adds a new query for CWE-494 "Download of Code Without Integrity Check".

The idea is pretty simple: We flag up any outfile argument from a web request unless we can taint-tracking it to an argument of Get-FileHash.

We could check that the hash is actually compared with something, but it's probably not worth it.

@joshbw

joshbw commented Jun 25, 2026

Copy link
Copy Markdown

what do you think about looking for flow to Get-AuthenticodeSignature as well?

@chanel-y

Copy link
Copy Markdown

@chanel-y

Copy link
Copy Markdown

@microsoft microsoft deleted a comment from chanel-y Jun 26, 2026
@MathiasVP

Copy link
Copy Markdown
Collaborator Author

Thanks for extending the query (and running a campaign)! I've cleaned up the query a bit and reverted a change I disagree with in 067711a (see my comments on Teams regarding this).

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.

4 participants