-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add malicious PR protection preview to Code Security documentation #32043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c8a0b46
update security pages and add malicious PR page
kassenq 948b2ed
comment out eng blog hyperlink for now, to be added back in after rel…
kassenq 12cb738
add comment for future reference
kassenq 7c359e2
Update content/en/security/_index.md
kassenq fffb384
Update content/en/security/code_security/static_analysis/malicious_pr…
kassenq 8ba2af1
Update content/en/security/code_security/static_analysis/malicious_pr…
kassenq c060a27
Update malicious_pr_protection.md
kassenq 5fe7b4c
Update content/en/security/code_security/static_analysis/malicious_pr…
kassenq c7f4356
Merge branch 'master' into kassenq/malicious-pr-protection
kassenq 183df20
fixing broken image
michaelcretzman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
2 changes: 1 addition & 1 deletion
2
content/en/security/code_security/static_analysis/custom_rules/tutorial.md
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
54 changes: 54 additions & 0 deletions
54
content/en/security/code_security/static_analysis/malicious_pr_protection.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: Malicious PR Protection | ||
description: Learn about how Datadog Static Code Analysis can scan your PRs at scale to prevent malicious code changes. | ||
is_beta: false | ||
algolia: | ||
tags: ['static analysis', 'datadog static analysis', 'code quality', 'SAST'] | ||
--- | ||
|
||
{{% site-region region="gov" %}} | ||
<div class="alert alert-danger"> | ||
Code Security is not available for the {{< region-param key="dd_site_name" >}} site. | ||
</div> | ||
{{% /site-region %}} | ||
|
||
|
||
Datadog Static Code Analysis (SAST) Malicious PR protection uses LLMs to detect and prevent malicious code changes at scale. This functionality scans code for known vulnerabilities and detects potentially malicious intent in the pull requests (PRs) submitted to your repositories. Malicious PR protection helps you to: | ||
|
||
- Scale your code reviews as the volume of AI-assisted code changes increases | ||
- Secure code changes from both internal and external contributors | ||
- Embed code security into your security incident response workflows | ||
|
||
Malicious PR protection is supported for default branches and GitHub repositories only. | ||
|
||
{{< callout url="https://www.datadoghq.com/product-preview/malicious-pr-protection/" >}} | ||
Malicious PR protection is in Preview. Click <strong>Request Access</strong> and complete the form to request access. | ||
{{< /callout >}} | ||
|
||
## Detection coverage | ||
|
||
Malicious code changes come in many different forms. Datadog SAST covers attack vectors such as: | ||
|
||
- Malicious code injection | ||
- Attempted secret exfiltration | ||
- Pushing of malicious packages | ||
- CI workflow compromise | ||
|
||
Examples include the [tj-actions/changed-files breach (March 2025)][2] and [obfuscation of malicious code in npm packages (September 2025)][3]. | ||
|
||
<!-- Read more in the blog post [here][1]. --> | ||
<!-- ^^ This line above should be added back in once the eng blog is published --> | ||
|
||
## Search and filter results | ||
|
||
Detections from Datadog SAST on potentially malicious PRs can be found in [Security Signals][4] by filtering for `malicious_PR`. | ||
|
||
There are two potential verdicts: `malicious` and `benign`. | ||
|
||
Signals can be triaged directly in Datadog (assign, create a case, or declare an incident), or routed externally via [Datadog Workflow Automation][5]. | ||
|
||
[1]: https://www.datadoghq.com/blog/engineering/malicious-pull-requests/ | ||
[2]: https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-tj-actionschanged-files-cve-2025-30066-and-reviewdogaction | ||
[3]: https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem | ||
[4]: https://app.datadoghq.com/security | ||
[5]: /actions/workflows/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.