Join our Newsletter — 33% off our NHI Course

What is the difference between built-in security rules and custom application security rules?

Built-in rules usually cover broadly applicable issues such as insecure patterns, exposed secrets, or weak controls that recur across many codebases. Custom application security rules are written to reflect an organisation’s own logic, such as approved authentication flows, cryptography standards, or forbidden APIs. Both are valuable, but they solve different problems: baseline coverage versus policy-specific enforcement.

What built-in security rules are designed to catch

Built-in security rules are the baseline layer. They are usually shipped by a scanner, platform, or framework to catch common patterns that are broadly risky across many applications, such as exposed secrets, insecure defaults, weak crypto usage, or obvious misuse of authentication and access controls. Their value is coverage and consistency: they help teams catch problems early without writing everything from scratch.

Because they are general-purpose, built-in rules work best for issues that are recognizable across many codebases. They are less effective when your organisation has specific business logic, approved exceptions, or internal platform conventions that a generic rule cannot infer. That is why built-in coverage should be treated as a floor, not as the full security policy.

In practice, built-in rules are most useful when the main question is, “Is this pattern commonly unsafe?” They are not intended to decide whether a design is acceptable under your organisation’s own policy. For deeper application verification guidance, the OWASP ASVS provides a structured way to think about authentication, access control, validation, and session behaviour.

Why custom application security rules exist

Custom application security rules encode local policy. They let teams express what is permitted or forbidden in their own environment, such as approved authentication flows, mandatory encryption standards, banned libraries, required logging, or prohibited APIs. This matters when security requirements are driven by business process, regulatory obligations, or architecture choices that a generic rule set cannot know.

Custom rules are also how organisations turn “we have a policy” into an enforceable check. Instead of relying on code review memory or tribal knowledge, the rule can flag violations automatically during development or CI. That makes the security posture more repeatable, especially where the same mistake would otherwise recur across teams or services.

A useful way to think about custom rules is that they capture organisational intent, while built-in rules capture common industry risk patterns. The two are complementary, not competing. If your application exposes APIs, the OWASP API Security Top 10 is a helpful baseline for the generic side, but your internal rules still need to enforce the API conventions and authorisation boundaries that are unique to your product.

How to decide where each rule type belongs

The practical distinction is usually this: use built-in rules for broad, reusable checks that should apply almost everywhere, and use custom rules for organisation-specific decisions that reflect your own control requirements. Built-in rules are strongest when the security issue is common and well understood; custom rules are strongest when correctness depends on your internal policy or architecture.

This is especially important when a “safe” pattern depends on context. For example, a built-in rule may detect hard-coded credentials, but only a custom rule may know whether a particular internal authentication flow is permitted, whether a specific cryptographic library is approved, or whether an API is allowed in a regulated environment. Without that custom layer, teams often either miss real violations or create noisy exceptions.

One useful comparison is with a scanner that catches broad application risks while your own rule set enforces the exceptions and approved pathways. The built-in layer gives you coverage at scale, and the custom layer prevents policy drift. That is the same logic behind the OWASP Top 10 as a shared baseline: it helps teams agree on common risk classes, while local rules handle the specifics.

Standards & Framework Alignment

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

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS sets the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP ASVS V6 — Authentication Built-in and custom rules often enforce auth behaviour and approved flows.
V8 — Authorization Custom rules frequently enforce organisation-specific access and permission boundaries.
V13 — Configuration Built-in rules often catch insecure configuration and forbidden defaults across codebases.
Recommendation — Map application auth checks to V6 and automate verification of approved login and session patterns. Use V8 to verify that custom rules enforce the exact access decisions your app requires. Apply V13 checks to detect insecure defaults and configuration drift in application scans.
OWASP API Security Top 10 API5 — Broken Function Level Authorization Custom rules can enforce which API actions are allowed in a given organisation.
Recommendation — Use API5 rules to block unauthorized API functions and enforce approved service actions.

Practitioner Guidance

What to prioritise: Keep built-in rules turned on for breadth, then add custom rules only where a violation would represent a real policy breach or a meaningful security decision. Do not write custom rules just to restate what the platform already catches well.

What to verify: Check that each custom rule has an explicit owner, a clear exception path, and a test case that proves it matches the intended behaviour. If a rule produces repeated false positives, teams will eventually bypass it rather than improve it.

Common mistake: Treating built-in rules as if they already encode your organisation’s security policy. They usually do not. If a rule matters because of your authentication model, crypto standards, or approved APIs, it belongs in the custom layer even when the built-in scanner looks healthy.

Practitioner takeaway: The best rule strategy is layered, broad built-in coverage for common risks, plus tightly governed custom rules for the decisions that make your application environment unique.