Skip to content

Commit

Permalink
fix(prompt scanner):
Browse files Browse the repository at this point in the history
  • Loading branch information
msoedov committed Jan 1, 2025
1 parent 22286b9 commit 39601f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agentic_security/probe_actor/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def process_prompt(

except httpx.RequestError as exc:
logger.error(f"Request error: {exc}")
errors.append((module_name, prompt, str(exc)))
errors.append((module_name, prompt, "?", str(exc)))
return tokens, True


Expand Down Expand Up @@ -150,8 +150,9 @@ async def perform_single_shot_scan(

yield ScanResult.status_msg("Scan completed.")

failure_data = errors + refusals
df = pd.DataFrame(
errors + refusals, columns=["module", "prompt", "status_code", "content"]
failure_data, columns=["module", "prompt", "status_code", "content"]
)
df.to_csv("failures.csv", index=False)

Expand Down

0 comments on commit 39601f2

Please sign in to comment.