@@ -10,14 +10,14 @@ seclab-taskflow-agent:
1010 filetype : taskflow
1111 version : 1
1212
13- model_config : seclab_taskflows.configs.model_config
14-
1513globals :
1614 repo :
15+ ghsa :
1716
1817taskflow :
1918 - task :
2019 must_complete : true
20+ headless : true
2121 agents :
2222 - seclab_taskflow_agent.personalities.assistant
2323 toolboxes :
@@ -34,21 +34,29 @@ taskflow:
3434 - seclab_taskflows.toolboxes.gh_file_viewer
3535 - seclab_taskflow_agent.toolboxes.memcache
3636 user_prompt : |
37- Fetch the details of the most recent GHSA of the repo {{ GLOBALS_repo }}.
37+ Fetch the details of the GHSA {{ GLOBALS_ghsa }} of the repo {{ GLOBALS_repo }}.
3838
3939 Analyze the description to understand what type of bug caused
40- the vulnerability.
40+ the vulnerability. DO NOT perform a code audit at this stage, just
41+ look at the GHSA details.
42+
43+ Check if any source file is mentioned as the cause of the GHSA.
44+ If so, identify the precise file path and line number.
4145
42- Try to determine from the description the
43- name of the source code file that the bug was in .
46+ If no file path is mentioned, then report back to the user that
47+ you cannot find any file path and end the task here .
4448
4549 The GHSA may not specify the full path name of the source
4650 file, or it may mention the name of a function or method
4751 instead, so if you have difficulty finding the file, try
4852 searching for the most likely match.
4953
54+ Only identify the file path for now, do not look at the code or
55+ fetch the file contents yet.
56+
5057 Store a summary of your findings in the memcache with the GHSA
51- ID as the key.
58+ ID as the key. That should include the file path and the function that
59+ the file is in.
5260
5361 - task :
5462 must_complete : true
@@ -61,8 +69,12 @@ taskflow:
6169 Fetch the GHSA ID and summary that were stored in the memcache
6270 by the previous task.
6371
72+ Look at the file path and function that were identified. Use the
73+ get_file_lines_from_gh tool to fetch a small portion of the file instead of
74+ fetching the entire file.
75+
6476 Fetch the source file that was identified as the cause of the
65- GHSA in repo {{ GLOBALS_repo }}.
77+ GHSA in repo {{ GLOBALS_repo }}.
6678
6779 Do a security audit of the code in the source file, focusing
6880 particularly on the type of bug that was identified as the
0 commit comments