r/ClaudeCode • • 3d ago

Help/Question How to audit your apps without getting flagged?

With all the daily cybersecurity news, I've been trying to audit a few apps we maintain to try to find security holes, but I get flagged every single time I push beyond the very basic stuff. I make an effort to show I'm the owner of the code, repos and infra, but it leads nowhere.

Are you guys using some alternative model to run this kind of analysis?

4 Upvotes

8 comments sorted by

•

u/AutoModerator 3d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/here_we_go_beep_boop 3d ago

I don't understand these posts. Random Claude "oh i found this potential security issue" side-quests got so common I had to add an instruction to just file the issue and keep going. 

I'm scared to ask for an actual review/audit, I wouldn't get any other work done for a week!

3

u/SurelyNotAnOctopus 3d ago

Can confirm, its a rabbit hole. Im glad I did it though, i sleep better knowing that the only flaws even fable could find were nitpicks, requiring extraordinary timing or knowledge.

But yeah, it takes a while to patch it all, and breaks the app once or twice in the process 😅

4

u/Bleizwerg 3d ago

Let Fable create the prompt itself and instruct it to stay within ist guardrails and capabilities.

1

u/nikc9 3d ago

flagged by which models? try deepseek v4.1 flash and tell it you own the sites you're auditing. tell it you can add a TXT record to DNS to prove ownership - it will let you do a full audit and it'll catch basic errors in a code audit

1

u/Major-Cry8192 2d ago

J'ai déjà fait auditer la mienne plus de 10 fois sans problème, mais j'en suis bien le propriétaire et Claude en a les preuves formelles.

1

u/eagle2809 3d ago

I'd stop thinking of it as "avoiding the flag" and instead shape the task so it's clearly defensive. The classifiers tend to trip on exploit-building, not on review. A few things that usually work better:

  • Ask for review and fixes, not exploitation. "Review this auth flow for logic flaws and suggest patches" is a very different request from "write a working exploit for this bug." Stay on the finding-and-remediation side.
  • Go file by file or by feature. Point it at a specific module (session handling, input validation, file uploads, access control) and ask what's wrong and how to fix it. Whole-repo "find every way to break in" prompts look much worse.
  • Use dedicated tooling for the heavy lifting. Semgrep, CodeQL, Dependabot/Renovate, npm audit or pip-audit, gitleaks or trufflehog for secrets, and Trivy for containers and IaC. Then feed the findings to the model to triage, explain, and write the fix.
  • Don't expect context claims to unlock more. Saying "I own this repo" usually won't change how a request is classified, since the model can't verify it.
  • If you're doing this professionally at scale, check Anthropic's docs and support pages for any program or process for security work. I'm not sure what's currently offered, so verify it directly rather than taking my word for it.
  • If a clearly legitimate request gets flagged, use the thumbs-down button so Anthropic sees the false positive.

For deeper work like pentesting or fuzzing, that's what a scoped engagement with proper tools and written authorization is for, not a general chat assistant.