Skip to main content
You can add metadata to the custom SAST rule that you create or when you clone an existing Endor Labs rule in the metadata section. The following example shows the SAST rule template with the metadata section.
You can add the following metadata information to the rule:
  • explanation: An explanation of the issue.
  • remediation: Possible remediation steps you can take to fix the issue.
  • cwe: The CWE ID of the issue. The OWASP or SANS-25 category of the CWE ID will automatically appear under Rule Tags in Findings if such a mapping can be established. The following image shows an example where the CWE-22 is automatically mapped to the appropriate category. Finding details
  • impact: The impact of the issue. Impact is one of the factors that determines the severity of the issue. See SAST severity matrix for more information.
  • confidence: The confidence level that the issue is real. Confidence is one of the factors that determines the severity of the issue. See SAST severity matrix for more information.
For example:
When Endor Labs generates a finding based on this rule, the explanation and remediation sections appear in the finding details. Finding details The metadata information also appears in the SARIF output.