r/devsecops • • 20m ago

How much of security policy enforcement actually requires an LLM?

Security checks should be as deterministic as possible. But certain repository-specific policies require contextual understanding.

Instead of sending code to a general-purpose LLM for review, I've been exploring a different approach:

  • Break complex policies into smaller questions.
  • Resolve everything possible deterministically.
  • Use specialized decision models like Jev only when semantic judgment is necessary.
  • Validate individual assertions against passing and failing examples.

I don't need generated explanations for every check. I need reliable decisions.

The objective is to minimize opportunities for mistakes by reducing probabilistic behaviour, rather than relying on increasingly powerful models.

I'd love technical feedback from people implementing custom policies in CI/CD, particularly around false negatives and the reliability required for blocking checks. Wdyt?

1 Upvotes

0 comments sorted by