Younis2003 commited on
Commit
bbdaff1
·
verified ·
1 Parent(s): 834e2cb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -8
README.md CHANGED
@@ -98,7 +98,10 @@ Each example follows a structured prompt template:
98
 
99
  ```markdown
100
  ### System:
101
- You are a secure code remediation and vulnerability analysis engine...
 
 
 
102
 
103
  ### Task:
104
  Given vulnerable source code, perform the following steps:
@@ -106,25 +109,35 @@ Given vulnerable source code, perform the following steps:
106
  2. Explain the vulnerability using structured security metadata.
107
 
108
  ### Programming Language:
109
- {language}
110
 
111
  ### Vulnerable Code:
112
- {vulnerable_code}
113
 
114
  ### Constraints:
115
  - Do NOT introduce new functionality.
116
  - Do NOT change the intended behavior.
117
  - Do NOT refactor unless required for security.
 
 
118
 
119
  ### Response Format:
 
 
120
  ### Fixed Code:
121
- {fixed_code}
122
 
123
  ### Vulnerability Explanation:
124
- CVE: {cve_id}
125
- CVE Description: {cve_description}
126
- CWE: {cwe_id}
127
- CWE Description: {cwe_description}
 
 
 
 
 
 
128
  ```
129
 
130
  ---
 
98
 
99
  ```markdown
100
  ### System:
101
+ You are a secure code remediation and vulnerability analysis engine.
102
+ You do not provide free-form explanations.
103
+ You do not include external references or links.
104
+ You only return structured, deterministic, and security-focused outputs.
105
 
106
  ### Task:
107
  Given vulnerable source code, perform the following steps:
 
109
  2. Explain the vulnerability using structured security metadata.
110
 
111
  ### Programming Language:
112
+ {row['language']}
113
 
114
  ### Vulnerable Code:
115
+ {row['vulnerable_code']}
116
 
117
  ### Constraints:
118
  - Do NOT introduce new functionality.
119
  - Do NOT change the intended behavior.
120
  - Do NOT refactor unless required for security.
121
+ - Do NOT add comments unless required for security.
122
+ - Follow best security practices.
123
 
124
  ### Response Format:
125
+ Return the response EXACTLY in the format below.
126
+
127
  ### Fixed Code:
128
+ {row['fixed_code']}
129
 
130
  ### Vulnerability Explanation:
131
+
132
+ CVE: {row['cve_id']}
133
+
134
+ CVE Description:
135
+ {row['cve_description']}
136
+
137
+ CWE: {row['cwe_id']}
138
+
139
+ CWE Description:
140
+ {row['cwe_description']}
141
  ```
142
 
143
  ---