step 2/2 opengrep scan --quiet --disable-version-check --config /opt/opengrep-rules --sarif-output="$GITBAY_RESULTS/opengrep.sarif" .
┌──────────────────┐
│ 79 Code Findings │
└──────────────────┘
audit_report/reporters/diff.py
❯❱ opt.opengrep-rules.python.lang.correctness.common-mistakes.string-concat-in-list
Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate
strings when not explicitly delimited. Was this supposed to be individual elements of the list?
150┆ (
151┆ f"<dl><dt>Rule</dt><dd><code>{escape(rule.id)}</code> · "
152┆ f"{escape(rule.severity)}</dd>"
153┆ ),
audit_report/reporters/html.py
❯❱ opt.opengrep-rules.python.lang.correctness.common-mistakes.string-concat-in-list
Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate
strings when not explicitly delimited. Was this supposed to be individual elements of the list?
126┆ f"<tr><td>{escape(control)}</td><td>{escape(catalog.framework_of(control))}</td>"
127┆ f"<td>{_badge(entry['status'])}</td>"
128┆ f"<td><code>{escape(', '.join(entry['rules']))}</code></td>"
129┆ f"<td>{escape(catalog.describe(control))}</td></tr>"
audit_report/rulesets/aws.yaml
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
15┆ - id: aws.iam.console-mfa
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.iam.console-mfa!
15┆ - id: aws.iam.console-mfa
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
15┆ - id: aws.iam.console-mfa
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
15┆ - id: aws.iam.console-mfa
16┆ title: Console users have MFA enabled
17┆ table: iam_users
18┆ severity: high
19┆ controls: [SOC2:CC6.1, ISO:A.5.17, NIST:IA-2]
20┆ rationale: >
21┆ A user who can sign in to the console without a second factor is a single
22┆ stolen password away from account access. MFA is the baseline control for
23┆ interactive human access.
24┆ remediation: Enforce MFA for all IAM users with console access, or remove their console
password.
[hid 6 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
32┆ - id: aws.iam.key-rotation
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.iam.key-rotation!
32┆ - id: aws.iam.key-rotation
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
32┆ - id: aws.iam.key-rotation
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
32┆ - id: aws.iam.key-rotation
33┆ title: Access keys are rotated within 90 days
34┆ table: iam_users
35┆ severity: medium
36┆ controls: [ISO:A.5.17, NIST:IA-5]
37┆ rationale: >
38┆ Long-lived access keys widen the window in which a leaked credential is
39┆ useful. Rotating keys bounds that exposure.
40┆ remediation: Rotate or delete access keys older than 90 days.
41┆ check:
[hid 2 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
45┆ - id: aws.root.mfa
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.root.mfa!
45┆ - id: aws.root.mfa
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
45┆ - id: aws.root.mfa
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
45┆ - id: aws.root.mfa
46┆ title: Root account has MFA enabled
47┆ table: account_security
48┆ severity: high
49┆ controls: [SOC2:CC6.1, ISO:A.8.2, NIST:IA-2]
50┆ rationale: >
51┆ The root account can perform every action in the account and cannot be
52┆ restricted by IAM policy. MFA on root is a foundational control.
53┆ remediation: Enable a hardware or virtual MFA device on the root user.
54┆ check:
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
59┆ - id: aws.root.no-access-keys
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.root.no-access-keys!
59┆ - id: aws.root.no-access-keys
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
59┆ - id: aws.root.no-access-keys
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
59┆ - id: aws.root.no-access-keys
60┆ title: Root account has no access keys
61┆ table: account_security
62┆ severity: high
63┆ controls: [SOC2:CC6.1, ISO:A.8.2, NIST:AC-6]
64┆ rationale: >
65┆ Programmatic root access keys are unnecessary and dangerous — anything
66┆ root can do should be done through named, least-privilege identities.
67┆ remediation: Delete all access keys on the root user.
68┆ check:
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
73┆ - id: aws.iam.password-policy
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.iam.password-policy!
73┆ - id: aws.iam.password-policy
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
73┆ - id: aws.iam.password-policy
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
73┆ - id: aws.iam.password-policy
74┆ title: Account password policy meets baseline strength
75┆ table: password_policy
76┆ severity: medium
77┆ controls: [ISO:A.5.17, NIST:IA-5]
78┆ rationale: >
79┆ A weak password policy undermines every password-based control. The
80┆ baseline here — length, complexity, and rotation — reflects common
81┆ hardening guidance.
82┆ remediation: Set a minimum length of 14, require symbols and numbers, and cap password
age at 90 days.
[hid 7 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
91┆ - id: aws.network.no-open-ssh
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.network.no-open-ssh!
91┆ - id: aws.network.no-open-ssh
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
91┆ - id: aws.network.no-open-ssh
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
91┆ - id: aws.network.no-open-ssh
92┆ title: No security group exposes SSH to the internet
93┆ table: open_security_groups
94┆ severity: high
95┆ controls: [SOC2:CC6.6, ISO:A.8.20, NIST:SC-7]
96┆ rationale: >
97┆ SSH (port 22) reachable from 0.0.0.0/0 invites credential-stuffing and
98┆ exploitation of the host directly from the public internet.
99┆ remediation: Restrict inbound SSH to known CIDR ranges or a bastion, or use SSM Session
Manager.
100┆ check:
[hid 6 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
108┆ - id: aws.s3.no-public-access
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.s3.no-public-access!
108┆ - id: aws.s3.no-public-access
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
108┆ - id: aws.s3.no-public-access
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
108┆ - id: aws.s3.no-public-access
109┆ title: No S3 bucket allows public access
110┆ table: s3_public_access
111┆ severity: high
112┆ controls: [SOC2:CC6.6, ISO:A.8.20, NIST:SC-7]
113┆ rationale: >
114┆ Publicly readable or writable buckets are a leading cause of data
115┆ exposure. audit-tools lists only buckets that permit public access, so any
116┆ row here is a finding.
117┆ remediation: Enable Block Public Access at the account and bucket level; remove public
bucket policies and ACLs.
[hid 2 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
121┆ - id: aws.cloudtrail.logging
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule aws.cloudtrail.logging!
121┆ - id: aws.cloudtrail.logging
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
121┆ - id: aws.cloudtrail.logging
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
121┆ - id: aws.cloudtrail.logging
122┆ title: A multi-region CloudTrail is actively logging
123┆ table: cloudtrail
124┆ severity: high
125┆ controls: [SOC2:CC7.2, ISO:A.8.15, NIST:AU-2]
126┆ rationale: >
127┆ Without an active trail there is no reliable record of account activity —
128┆ the evidence auditors and responders rely on simply does not exist.
129┆ remediation: Enable a multi-region CloudTrail with log file validation and confirm it is
logging.
130┆ check:
[hid 5 additional lines, adjust with --max-lines-per-finding]
audit_report/rulesets/github.yaml
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
14┆ - id: github.org.require-2fa
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule github.org.require-2fa!
14┆ - id: github.org.require-2fa
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
14┆ - id: github.org.require-2fa
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
14┆ - id: github.org.require-2fa
15┆ title: Organization requires two-factor authentication
16┆ table: org_security
17┆ severity: high
18┆ controls: [SOC2:CC6.1, ISO:A.5.17, NIST:IA-2]
19┆ rationale: >
20┆ Org-enforced 2FA raises the floor for every member at once. Without it, a
21┆ single member with a weak or reused password is an org-wide risk.
22┆ remediation: Enable "Require two-factor authentication" in the organization security
settings.
23┆ check:
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
28┆ - id: github.org.default-permission
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule github.org.default-permission!
28┆ - id: github.org.default-permission
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
28┆ - id: github.org.default-permission
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
28┆ - id: github.org.default-permission
29┆ title: Base repository permission is read or less
30┆ table: org_security
31┆ severity: medium
32┆ controls: [SOC2:CC6.3, ISO:A.5.15, NIST:AC-6]
33┆ rationale: >
34┆ A permissive base permission (write/admin for all members) violates least
35┆ privilege by granting broad access that should be explicit.
36┆ remediation: Set the organization base permission to "read" or "none" and grant
write/admin per team.
37┆ check:
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
42┆ - id: github.org.secret-scanning
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule github.org.secret-scanning!
42┆ - id: github.org.secret-scanning
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
42┆ - id: github.org.secret-scanning
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
42┆ - id: github.org.secret-scanning
43┆ title: Secret scanning push protection is on for new repos
44┆ table: org_security
45┆ severity: medium
46┆ controls: [SOC2:CC7.1, ISO:A.5.17, NIST:CM-6]
47┆ rationale: >
48┆ Push protection stops secrets from entering history in the first place,
49┆ which is far cheaper than rotating a leaked credential after the fact.
50┆ remediation: Enable secret scanning and push protection for new repositories at the org
level.
51┆ check:
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
56┆ - id: github.branch.default-protected
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule github.branch.default-protected!
56┆ - id: github.branch.default-protected
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
56┆ - id: github.branch.default-protected
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
56┆ - id: github.branch.default-protected
57┆ title: Default branches are protected
58┆ table: branch_protections
59┆ severity: high
60┆ controls: [SOC2:CC8.1, ISO:A.8.32, NIST:CM-6]
61┆ rationale: >
62┆ An unprotected default branch can be force-pushed or have its history
63┆ rewritten with no review — the change-management trail auditors expect is
64┆ absent.
65┆ remediation: Add a branch protection rule or ruleset covering the default branch of each
repository.
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
70┆ - id: github.branch.require-reviews
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule github.branch.require-reviews!
70┆ - id: github.branch.require-reviews
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
70┆ - id: github.branch.require-reviews
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
70┆ - id: github.branch.require-reviews
71┆ title: Protected branches require at least one review
72┆ table: branch_protections
73┆ severity: medium
74┆ controls: [SOC2:CC8.1, ISO:A.8.32, NIST:CM-6]
75┆ rationale: >
76┆ Required review is the core segregation-of-duties control in the SDLC: no
77┆ change reaches the default branch without a second person approving it.
78┆ remediation: Require at least one approving review on the default branch.
79┆ check:
[hid 5 additional lines, adjust with --max-lines-per-finding]
audit_report/rulesets/gitlab.yaml
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
21┆ - id: gitlab.branch.no-force-push
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule gitlab.branch.no-force-push!
21┆ - id: gitlab.branch.no-force-push
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
21┆ - id: gitlab.branch.no-force-push
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
21┆ - id: gitlab.branch.no-force-push
22┆ title: Protected branches disallow force push
23┆ table: branch_protections
24┆ severity: high
25┆ controls: [SOC2:CC8.1, ISO:A.8.32, NIST:CM-6]
26┆ rationale: >
27┆ Allowing force push to a protected branch lets history be rewritten with
28┆ no trace, defeating the change-management record the protection exists to
29┆ provide.
30┆ remediation: Disable "Allow force push" on protected branches.
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
35┆ - id: gitlab.branch.code-owner-approval
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule gitlab.branch.code-owner-approval!
35┆ - id: gitlab.branch.code-owner-approval
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
35┆ - id: gitlab.branch.code-owner-approval
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
35┆ - id: gitlab.branch.code-owner-approval
36┆ title: Protected branches require code owner approval
37┆ table: branch_protections
38┆ severity: low
39┆ controls: [SOC2:CC8.1, ISO:A.8.32]
40┆ rationale: >
41┆ Code owner approval routes changes to the people accountable for the
42┆ affected files. It is a stricter posture than a plain review requirement
43┆ and is not needed everywhere — hence low severity.
44┆ remediation: Enable "Require approval from code owners" on protected branches where
ownership matters.
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
49┆ - id: gitlab.approvals.require-one
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule gitlab.approvals.require-one!
49┆ - id: gitlab.approvals.require-one
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
49┆ - id: gitlab.approvals.require-one
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
49┆ - id: gitlab.approvals.require-one
50┆ title: Approval rules require at least one approval
51┆ table: approval_rules
52┆ severity: medium
53┆ controls: [SOC2:CC8.1, ISO:A.8.32, NIST:CM-6]
54┆ rationale: >
55┆ An approval rule that requires zero approvals contributes nothing to
56┆ segregation of duties — a change can merge with no second person signing
57┆ off.
58┆ remediation: Set the required number of approvals to at least one on merge-blocking
rules.
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
63┆ - id: gitlab.projects.no-public
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule gitlab.projects.no-public!
63┆ - id: gitlab.projects.no-public
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
63┆ - id: gitlab.projects.no-public
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
63┆ - id: gitlab.projects.no-public
64┆ title: Projects are not publicly visible
65┆ table: projects
66┆ severity: medium
67┆ controls: [SOC2:CC6.3, ISO:A.5.15, NIST:AC-6]
68┆ rationale: >
69┆ A public project exposes its source and history to anyone on the
70┆ internet. That is sometimes intended (open source) but should be a
71┆ deliberate, reviewed decision rather than a default.
72┆ remediation: Set project visibility to private or internal unless public exposure is
intended and approved.
[hid 3 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
77┆ - id: gitlab.password-policy
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule gitlab.password-policy!
77┆ - id: gitlab.password-policy
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
77┆ - id: gitlab.password-policy
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
77┆ - id: gitlab.password-policy
78┆ title: Instance password policy meets baseline strength
79┆ table: password_policy
80┆ severity: medium
81┆ controls: [ISO:A.5.17, NIST:IA-5]
82┆ rationale: >
83┆ A weak password policy undermines every password-based control. This table
84┆ is only present for self-hosted instances audited with an admin token; on
85┆ GitLab.com it is absent and this rule reports as not applicable.
86┆ remediation: Require a minimum length of 12 and mandate numbers and symbols in the
instance settings.
[hid 6 additional lines, adjust with --max-lines-per-finding]
❱ opt.opengrep-rules.yaml.semgrep.metadata-category
This Semgrep rule is missing a valid 'category' field in the 'metadata'. 'category' must be one of
'security', 'correctness', 'best-practice', 'performance', 'maintainability', or 'portability'.
94┆ - id: gitlab.audit.logging-active
❯❱ opt.opengrep-rules.yaml.semgrep.missing-language-field
Please include a 'languages' field for your rule gitlab.audit.logging-active!
94┆ - id: gitlab.audit.logging-active
❯❱ opt.opengrep-rules.yaml.semgrep.missing-message-field
This rule does not have a message. Semgrep requires that rules have a message. Include a message to
explain what the rule does. Consider writing a message that explains why this is an issue and how to
fix it.
94┆ - id: gitlab.audit.logging-active
❱ opt.opengrep-rules.yaml.semgrep.metadata-technology
This Semgrep rule is missing a 'technology' field in the 'metadata'. Consider adding a list of
technologies based on the rule's associated library or framework, or another piece of relevant
information.
94┆ - id: gitlab.audit.logging-active
95┆ title: Audit event logging is producing records
96┆ table: audit_events
97┆ severity: medium
98┆ controls: [SOC2:CC7.2, ISO:A.8.15, NIST:AU-2]
99┆ rationale: >
100┆ The presence of audit events is direct evidence that GitLab is recording
101┆ security-relevant activity. Absence here means no events were collected —
102┆ reported as not applicable rather than as a pass or a failure.
103┆ remediation: Confirm audit events are enabled and retained for the group and its
projects.
[hid 3 additional lines, adjust with --max-lines-per-finding]
audit_report/trend.py
❯❱ opt.opengrep-rules.python.lang.correctness.common-mistakes.string-concat-in-list
Detected strings that are implicitly concatenated inside a list. Python will implicitly concatenate
strings when not explicitly delimited. Was this supposed to be individual elements of the list?
193┆ f"<td class='cell {_STATUS_CLASS.get(s, 'na')}' title='{escape(s)}'>"
194┆ f"{_STATUS_SYMBOL.get(s, '?')}</td>"
results uploaded