codeguard-1-digital-certificates Cursor ruleA
codeguard-1-digital-certificates from santosomar/ai-agents-for-cybersecurity is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add santosomar/ai-agents-for-cybersecurity/.cursor/rules/codeguard-1-digital-certificates.mdc@v1.5.0Pins v1.5.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- santosomar/ai-agents-for-cybersecurity
- Path
.cursor/rules/codeguard-1-digital-certificates.mdc- Versions recorded
- 2
- Latest version
- v1.5.0, committed Oct 12, 2026
- First version recorded
- Oct 19, 2025
- Size
- 6,038 bytes
- Repository stars
- 251
- License
- BSD-3-Clause
Certificate Best Practices.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
rule_id: codeguard-1-digital-certificates When you encounter data that appears to be an X.509 certificate—whether embedded as a string or loaded from a file—you must flag the certificate for verification and ensure the following security properties are validated, reporting any concerns with clear explanations and recommended actions. ### 1. How to Identify Certificate Data Actively scan for certificate data using the following heuristics: - PEM-Encoded Strings: Identify multi-line string literals or constants that begin with `-----BEGIN CERTIFICATE-----` and end with `-----END CERTIFICATE-----`. - File Operations: Pay close attention to file read operations on files with common certificate extensions, such as `.pem`, `.crt`, `.cer`, and `.der`. - Library Function Calls: Recognize the usage of functions from cryptographic libraries used to load or parse certificates (e.g., OpenSSL's `PEM_read_X509`, Python's `cryptography.x509.load_pem_x509_certificate`, Java's `CertificateFactory`). ### 2. Mandatory Sanity Checks Once certificate data is identified, flag it for verification. The following properties must be validated to ensure the certificate meets security requirements: …
Read the whole file at its exact version.
How to install
mdr add santosomar/ai-agents-for-cybersecurity/.cursor/rules/codeguard-1-digital-certificates.mdc@sha256:cfa6c5c920ded28fThe line at the top of this page pins the label v1.5.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_e4vfmsorldwmakpl)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Oct 19, 2025 and Oct 12, 2026, about one every 358 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.5.0 latest | 2026-10-12 | 227a2b6 | 6,038 B | A | view · diff |
| v1.0.0 | 2025-10-19 | 52abd04 | 4,944 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (6038 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
santosomar/ai-agents-for-cybersecurity · 251 stars · license BSD-3-Clause · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_e4vfmsorldwmakpl GET https://markdownregistry.com/api/v1/resolve?ref=santosomar/ai-agents-for-cybersecurity/.cursor/rules/codeguard-1-digital-certificates.mdc GET https://markdownregistry.com/api/v1/blob/cfa6c5c920ded28f3b3e80fae3ca02b03af70579757625fb6508a00810e65e55
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.
More from santosomar/ai-agents-for-cybersecurity
Every file in santosomar/ai-agents-for-cybersecurity