owasp property
OWASP categories this rule helps prevent.
Override to specify OWASP Mobile Top 10 and/or Web Top 10 categories
that this rule addresses. Returns null for non-security rules.
Example:
@override
OwaspMapping? get owasp => const OwaspMapping(
mobile: {OwaspMobile.m1, OwaspMobile.m10},
web: {OwaspWeb.a02, OwaspWeb.a07},
);
This mapping enables:
- Compliance reporting for security audits
- Risk categorization aligned with industry standards
- Coverage analysis across OWASP categories
Implementation
@override
OwaspMapping get owasp => const OwaspMapping(
mobile: <OwaspMobile>{OwaspMobile.m1},
web: <OwaspWeb>{OwaspWeb.a07},
);