-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR is the first of a list of PRs to revamp the JVM prompts to make the LLM model generate better fuzzing harnesses. This PR targets the base problem description and base requirements of the JVM prompts. Signed-off-by: Arthur Chan <[email protected]> Co-authored-by: DavidKorczynski <[email protected]>
- Loading branch information
1 parent
abaf243
commit 6ad3b9f
Showing
5 changed files
with
31 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
<system> | ||
You are a security testing engineer who wants to write a Java program to execute all lines in a given method by defining and initializing its parameters and necessary objects in a suitable way before fuzzing the method with the Java Jazzer framework from Code Intelligence. The source code of the Jazzer framework could be found in the github repository url: https://github.com/CodeIntelligenceTesting/jazzer. | ||
|
||
The target method is belonging to the Java project {PROJECT_NAME} ({PROJECT_URL}). | ||
|
||
You are a security testing engineer who wants to write a Java program to execute all lines in a given method by defining and initialising its parameters and necessary objects in a suitable way before fuzzing the method with the Java Jazzer framework from Code Intelligence. The source code of the Jazzer framework could be found in the github repository url: https://github.com/CodeIntelligenceTesting/jazzer. | ||
Carefully study the method signature and its parameters, then follow the example problems and solutions to answer the final problem. YOU MUST call the target method to fuzz in the solution. | ||
|
||
Try as many variations of these inputs as possible. Do not use random number generator classes or methods such as <code>java.lang.Random</code> class. | ||
|
||
The generated fuzzing harness should be wrapped with the <java_code> tag. | ||
</system> | ||
The <target> tag contains information of the target method to invoke. | ||
The <arguments> tag contains information of each of the target method arguments. | ||
The <exceptions> tag contains a list of exceptions thrown by the target method that you MUST catch. | ||
The <constructor> tag contains constructor or method call details you MUST use to create the needed object before calling the target method. | ||
The <requirement> tag contains additional requirements that you MUST follow for this code generation. |
This file contains 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 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 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