By NHI Mgmt Group Editorial TeamBased on Semgrep: “Enhancing developer happiness: The impact of identifying code-specific issues” (September 4, 2025)

TL;DR: Security tools often find vulnerabilities too late, miss project-specific code patterns, and fail to give developers fixes they can act on, according to Semgrep. The real shift is from detection-only scanning to fast, relevant, workflow-embedded guidance that improves fix rates and trust.


At a glance

What this is: This article argues that rule customization is the missing ingredient in developer-friendly security because generic tools are too slow, too noisy, and too detached from how code is actually written and fixed.

Why it matters: IAM and security teams should care because the same trust and workflow problems that undermine code security tools also weaken how organisations govern identities, secrets, and remediation at scale.


Context

Developer-facing security often fails when it behaves like a late-stage audit instead of part of the coding workflow. Generic scans can find issues, but they usually do so after context is lost, which makes the finding harder to trust and slower to fix. In practice, the gap is not detection alone but whether the control produces relevant, timely, and actionable feedback.

That matters to identity and NHI governance because many security controls rely on accurate context, clear ownership, and fast remediation. When rules cannot express project-specific patterns, organisations miss code-level exposures in secrets handling, authentication logic, and insecure usage of shared libraries. The result is not just more findings, but more findings that developers learn to ignore.

The article’s starting point is typical for modern engineering teams: security tooling adoption does not automatically produce better outcomes. The differentiator is whether the tooling can encode local rules and return feedback where developers already work.


Key questions

Q: How should security teams implement custom rules without overwhelming developers with noise?

A: Start with a narrow set of high-value patterns that reflect local code, libraries, and approved secure usage. Keep the rules selective, tie them to concrete remediation, and tune them based on whether developers fix the findings. The goal is not maximum coverage, but enough precision that the team trusts the results and keeps using the tool.

Q: Why do security tools fail to change developer behaviour?

A: They often fail when they interrupt work late, produce unclear findings, or demand too many manual steps. Developers respond to speed, clarity, and ownership. If a tool does not explain what is wrong and how to fix it quickly, the finding becomes background noise rather than a governance control.

Q: What are the signs that a security rule set is not working?

A: Look for low fix rates, repeated developer complaints about false positives, and findings that are routinely dismissed or bypassed. Those signals suggest the rules are too generic, too late, or too disconnected from how the code is written. A useful rule set should produce fewer but more actionable findings over time.

Q: When should teams prioritise autofix over manual review for code security findings?

A: Use autofix when the secure replacement is clear, repeatable, and unlikely to require human judgment on every instance. That is especially useful for common misuse patterns where the tool already knows the approved code transformation. Manual review still matters for ambiguous cases, but routine fixes should not depend on developer guesswork.


Technical breakdown

Why generic scanners miss project-specific risk

Traditional scanners are strongest when a vulnerability has a known pattern that is easy to detect across many codebases. They struggle when the risk depends on local conventions, in-house libraries, or the intended use of a function within a specific application. A rule that can express “this function must only be called with sanitized input” is often more valuable than a detector for a generic vulnerability class. That shift changes the problem from finding all possible flaws to enforcing what safe use looks like in one codebase.

Practical implication: security teams should encode codebase-specific expectations, not rely only on default rulesets.

How rule customization changes remediation quality

Rule customization is not only about detection. It also lets teams attach context, recommended fixes, or autofix behaviour to a finding so the developer can act immediately. That is important because a finding without a credible fix is often treated as noise. The article’s SQL injection example shows the difference between saying a pattern is risky and specifying the secure alternative, such as parameterization or an approved ORM. In developer workflows, the remediation path is often what determines whether a control creates trust or resistance.

Practical implication: pair each custom rule with a specific, code-level remediation path or autofix where possible.

Why workflow timing matters more than late-stage scans

The article argues that controls work better when they surface during development or code review rather than after code has moved far downstream. At that stage, developers still have the right context, the cost of change is lower, and the feedback can be integrated into normal delivery habits. Embedding checks in pull requests or IDEs turns security from a separate review function into a decision support layer. That does not eliminate security judgment, but it improves the odds that the finding is both visible and usable.

Practical implication: move security feedback into pull requests and IDEs instead of relying on post-commit review alone.


NHI Mgmt Group analysis

Rule customization is a governance control, not a convenience feature. When security tools cannot express the rules that matter to a specific codebase, the organisation is effectively outsourcing judgment to generic defaults. That is a weak control model because relevance, not volume, determines whether developers will act. The practical conclusion is that teams should treat rule engineering as part of security governance, especially where code patterns intersect with secrets, authentication, and privileged access.

Effective false positives are the real success metric for developer security tooling. Raw alert counts tell you little if developers cannot distinguish meaningful findings from noise. The article’s emphasis on fix rate and developer trust points to a deeper control objective: make the finding actionable at the moment it appears. That aligns with the broader security principle that a control only matters if it changes behaviour. Practitioners should measure whether findings are accepted, fixed, and reused as policy.

Workflow-embedded security reduces the gap between policy and execution. Security teams often write rules that are too abstract to be used where code is written. The result is policy that exists on paper but does not survive contact with the development process. A better model is to move enforcement closer to authoring time and to encode approved patterns directly in tooling. The practitioner takeaway is to govern the decision point, not only the audit point.

Project-specific rule logic is the missing layer between scanning and prevention. The article’s main contribution is the argument that detection alone is not enough when the real problem is how developers make safe choices in context. This is where identity and secrets governance intersect with application security: when libraries, credentials, or authentication flows are used incorrectly, the control has to understand local intent. Teams that ignore this layer will keep generating findings that look useful but do not change outcomes.

What this signals

Developer trust is now a security control issue. If engineers do not trust the findings, they will route around them, and the security programme loses coverage exactly where it needs adoption. The practical shift is to treat rule relevance, fixability, and workflow placement as control properties rather than tool preferences.

Custom rules are the bridge between policy and code. Organisations already have security expectations for internal libraries, approved cryptography, authentication flows, and secure usage patterns. Encoding those expectations directly into analysis rules turns abstract policy into an enforceable development-time guardrail.

For practitioners, the next step is to measure whether security feedback actually changes code before merge. If a control cannot influence decisions at authoring time, it is probably functioning as reporting, not prevention.


For practitioners

  • Inventory the code patterns your default rules miss Identify in-house libraries, approved secure wrappers, and recurring unsafe call patterns that generic scanners do not understand. Turn those into explicit custom checks rather than leaving them as tribal knowledge.
  • Attach concrete remediation to each finding For every high-value rule, define the secure alternative in the rule message or provide an autofix so developers can resolve the issue without guessing at the intended pattern.
  • Move feedback into pull requests and IDEs Prioritise delivery-stage feedback over late pipeline-only scanning so developers receive findings while the code context is still fresh and changes are still cheap.
  • Measure effective false positives and fix rate Track whether developers fix findings, ignore them, or need manual explanation. Use those signals to refine rule scope, severity, and remediation guidance.

Key takeaways

  • Generic security tools can identify vulnerabilities, but they often miss the project-specific context that determines whether developers can fix the issue correctly.
  • Rule customization improves developer trust by making findings more relevant, more actionable, and easier to resolve inside normal development workflows.
  • The strongest security outcome comes from combining selective rules, clear remediation, and workflow-embedded feedback rather than relying on late-stage scanning alone.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP ASVS, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV15 — Secure Coding and ArchitectureThe article is about encoding secure coding expectations into developer tools and custom rules.
V16 — Security Logging and Error HandlingDeveloper-facing tooling needs useful feedback and clear signal quality, not just raw alerts.
Recommendation — Use V15 to turn recurring insecure code patterns into enforceable checks and approved remediation patterns. Apply V16-style rigor to findings so each alert is clear, actionable, and traceable to a fix.
NIST CSF 2.0PR.DS-01 — Data-at-rest is protectedThe article’s code examples include preventing insecure cryptography and unsafe implementation choices.
Recommendation — Use PR.DS-01 to encode approved cryptographic patterns and block deprecated algorithms in code review.
CIS Controls v8CIS-16 — Application Software SecurityCustom rules and secure coding checks are core application security controls.
Recommendation — Apply CIS-16 to embed security checks into development pipelines and review workflows.

Key terms

  • Custom Security Rules: Custom security rules are organisation-specific checks that encode local security policy, approved design patterns, or prohibited code behaviours. They extend baseline scanning by letting teams enforce rules for authentication, cryptography, and API usage that reflect their own architecture and risk appetite, rather than only generic application security guidance.
  • Effective False Positive Rate: Effective false positive rate is the proportion of alerts that developers cannot or will not act on, even if the underlying issue is technically real. It is a practical measure of control quality because unusable findings behave like noise, not governance.
  • Autofix: An automated remediation workflow in which a machine reviewer not only identifies an issue but also applies a code change. In practice, this shifts the tool from advisory review into delegated execution, which requires clear permission boundaries, auditability, and rollback controls.
  • Developer Workflow Integration: Developer workflow integration means placing security checks inside the normal path of coding, review, and release. When SAST is integrated into pull requests, IDEs, and CI gates, developers can respond while the context is fresh. Without that fit, security findings become detached from the work process and are more likely to be ignored.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. Explore the NHI Foundation Level course, the industry's only accredited NHI security programme, to strengthen how your team governs identities and access.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org