You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each undocumented behavioral change you identify:
76
-
1. Briefly describe the undocumented change in 15 words or less.
77
-
2. Give the undocumented change a malice rating, from 0-10 (0=Benign, 5=Suspicious, 10=Extremely Dangerous)
78
-
* Don't worry if the code is adding new functionality that may accidentally introduce a security vulnerability,
79
-
such as potential code execution risk, but do care if the undocumented behaviors appear to be malicious, for example:
80
-
adding a backdoor, downloading software, calling chmod to make programs executable, introducing malicious behaviors or add undocumented obfuscation to avoid code analysis.
81
-
3. Give the undocumented change a silent security fix rating, based on how likely and critical you think the security patch might have been.
82
-
If the code authors mention "security fix" or "CVE" in the changelog or commit messages relating to the delta between these two versions,
83
-
it is less likely to see hidden silent security fixes.
84
-
4. For each rating, provide a 1-sentence explanation of how you arrived to your conclusion.
76
+
Your task is to determine if there are behavior changes present in the unified diff that are not documented
77
+
by either the commit messages or changelog.
85
78
86
-
Thinking how a security engineer would reason about a combination of security threats or analyze software, you
87
-
you also need to take a step back and consider the overall impact of all of the undocumented changes to assess a
88
-
combined "malice" and "silent security fix" score.
79
+
- Be loose in your interpretation of how a diff change
80
+
may be related to a commit message or changelog entry.
81
+
- Don't include undocumented code health improvements that often appear alongside feature changes.
82
+
* For example, don't include documentation updates, changes that can come up in code refactoring, CI/CD configuration changes, or performance improvements.
83
+
- Ignore changes to files within the .github directory, as they will not impact the users of this tool.
84
+
- Unless you know of a specific security threat for a package version, assume that dependency version bumps are not part of a silent security fix.
89
85
90
-
In general, most software should score 0-1.
91
-
92
-
Here are undocumented behavioral changes to ignore:
93
-
- Changes to .github/workflows/ files - as they do not impact the behavior of the software
94
-
- Changes to documentation (.md files, for example) - as they do not impact the behavior of the software
95
-
- Performance improvements
96
-
- Changes that may be related to code refactoring
86
+
Format your response as a JSON object with:
97
87
98
-
Focus on behavioral changes that could be construed as malicious or a fix for an undocumented critical security vulnerability.
88
+
- "undocumented_changes": An array of JSON objects for each undocumented behavioral change that could impact a user of this program, each with:
89
+
- "description": A concise 1-sentence description of the undocumented behavioral change
90
+
- "malware_risk": 0-10 danger scale of this undocumented change being malicious in nature. For example, could this undocumented change
91
+
represent the addition of code for credential exfiltration, a backdoor, or a data wiper? (0=Benign, 5=Suspicious, 10=Extremely Dangerous)
92
+
- "malware_explanation": A 1-sentence explanation for the given malware_risk rating.
93
+
- "silent_patch": 0-10 likelihood of this undocumented change representing a hidden critical security patch (0=Benign, 5=Suspicious, 10=Extremely Dangerous)
94
+
- "silent_explanation": Your explanation for your silent_patch rating.
99
95
100
-
Format your response as a JSON object with:
101
-
- "changes": An array of JSON objects, each with:
102
-
- "description": A brief description of the undocumented change
103
-
- "malware_risk": 0-10 danger scale of this change (0=Benign, 5=Suspicious, 10=Extremely Dangerous)
104
-
- "malware_explanation": Your explanation for your malware risk rating.
105
-
- "silent_patch": 0-10 likelihood of a silent critical security patch (0=Benign, 5=Suspicious, 10=Extremely Dangerous)
106
-
- "silent_explanation": Your explanation for your silent_Patch rating.
107
-
108
-
- "summary": A JSON object that assesses the combined impact:
109
-
- "description": A 1-sentence description of the combined undocumented behavioral changes.
96
+
- "summary": A JSON object that assesses the combined impact of the undocumented behavioral changes you've found:
97
+
- "description": A concise 1-sentence description of the combined undocumented behavioral changes.
110
98
- "malware_risk": 0-10 danger scale of all combined changes considered together (0=Benign, 5=Suspicious, 10=Extremely Dangerous)
111
-
- "malware_explanation": Your explanation for your combined malware risk rating.
99
+
- "malware_explanation": A 1-sentence explanation for your combined malware risk rating.
112
100
- "silent_patch": 0-10 likelihood of a silent critical security patch introduced in this version change (0=Benign, 5=Suspicious, 10=Extremely Dangerous)
113
101
- "silent_explanation": Your explanation for your combined silent_patch rating.
114
102
103
+
Do not include changes mentioned in the Changelog or commit messages.
104
+
115
105
If there are no undocumented behavior changes, return an empty changes array. Your response must be in JSON form to be understood.
0 commit comments