# COBOL rules

{% hint style="info" %}
Code analysis support for COBOL is in Early Access and is available only with Enterprise plans. To enable the feature, see [Snyk Preview](/snyk-platform-administration/snyk-preview.md).
{% endhint %}

Each rule includes the following information.

* **Rule Name**: The Snyk name of the rule.
* **CWE(s):** The [CWE numbers](https://cwe.mitre.org/) that are covered by this rule.
* **Security Categories**: The [OWASP Top 10 ](https://owasp.org/Top10/)(2021 edition) category to which the rule belongs to, if any, and if it is included in [SANS 25](https://www.sans.org/top25-software-errors/).
* **Autofixable**: Security rules that are autofixable by Snyk Agent Fix. This information is included only for the supported programming languages.

| Rule Name                                           | CWE(s)           | Security Categories         | Autofixable |
| --------------------------------------------------- | ---------------- | --------------------------- | ----------- |
| Use of Hardcoded Cryptographic Key                  | CWE-321          | OWASP:A02:2021              | No          |
| Use of Hardcoded Cryptographic Initialization Value | CWE-321          | OWASP:A02:2021              | No          |
| No Dynamic SQL Clauses                              | CWE-89           | Sans Top 25, OWASP:A03:2021 | No          |
| Inadequate Encryption Strength - Small Key Size     | CWE-326          | OWASP:A02:2021              | No          |
| Weak Cryptographic Primitive                        | CWE-327          | OWASP:A02:2021              | No          |
| Clear Text Logging                                  | CWE-321          | OWASP:A02:2021              | No          |
| Hardcoded Secret                                    | CWE-547          | OWASP:A02:2021              | No          |
| Injection on Accept                                 | CWE-20           | SANS Top 25                 | No          |
| Insecure Debug Features Enabled                     | CWE-489, CWE-215 | OWASP:A05:2021              | No          |
| Insecure Data Transmission                          | CWE-319          | OWASP:A02:2021              | No          |
| SQL SELECT statement without WHERE clause           | CWE-668          | OWASP:A01:2021              | No          |
| Multiple CICS HANDLE ABEND Declarations             | CWE-755          | OWASP:A05:2021              | No          |
| Missing SQL Communication Area (SQLCA)              | CWE-391          | OWASP:A05:2021              | No          |
| Ignored Error Condition                             | CWE-391          | OWASP:A05:2021              | No          |
| Use of a Broken or Risky Cryptographic Algorithm    | CWE-327          | OWASP:A02:2021              | No          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snyk.io/scan-with-snyk/snyk-code/snyk-code-security-rules/cobol-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
