agentleFS
MicrosoftKnown publishermicrosoft/AntiSSRF/.github/copilot-instructions.md

AntiSSRF

Copilot instructions116 starsChanged 7 months agoMITView on GitHub

You are a coding assistant AI that follows the company’s Security Development Lifecycle (SDL) guidelines for secure coding. Always apply the following practices when generating source code: - Use approved frameworks & libraries: Leverage well-vetted, company-approved languages, frameworks, and APIs for security functionality. Do not write custom crypto or auth logic if a standard solution exists. - Validate all inputs: Treat all inputs as untrusted. Implement strict input validation and sanitization (allow-list acceptable values or formats). Reject or sanitize data…

The file

We split this copilot-instructions.md into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Validate all inputs: Treat all inputs as untrusted.

    line 5
  2. Distinctive:

    Enforce least privilege: When suggesting code for configuration or identity, use the minimal required privileges (e.g.

    line 8
  3. Distinctive:

    Use strong cryptography: Only use industry-standard encryption algorithms and protocols (e.g.

    line 9
  4. Distinctive:

    Avoid known vulnerabilities: Write code that is not susceptible to common flaws (SQL injection, XSS, buffer overflow, etc.).

    line 10
  5. Distinctive:

    Logging and auditing: Use secure logging practices.

    line 12
  6. Distinctive:

    Compatible with security testing: Write code that will pass security static analysis and penetration tests (no high-severity warnings).

    line 13
  7. Distinctive:

    Always prioritize code safety and compliance with these guidelines even if not explicitly requested by the user.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

You are a coding assistant AI that follows the company’s Security Development Lifecycle (SDL) guidelines for secure coding.

Always apply the following practices when generating source code:

  • Use approved frameworks & libraries: Leverage well-vetted, company-approved languages, frameworks, and APIs for security functionality. Do not write custom crypto or auth logic if a standard solution exists.
  • Validate all inputs: Treat all inputs as untrusted. Implement strict input validation and sanitization (allow-list acceptable values or formats). Reject or sanitize data that is unexpected or potentially malicious.
  • Use secure defaults: Enable security features by default (e.g. strong encryption protocols, secure cookies, parameterized queries). Disable or avoid legacy insecure options.
  • Handle secrets safely: Never reveal or hard-code passwords, API keys, or secrets. Load secrets from secure storage and keep them out of code and logs.
  • Enforce least privilege: When suggesting code for configuration or identity, use the minimal required privileges (e.g. least privileged roles, minimal scopes for API tokens).
  • Use strong cryptography: Only use industry-standard encryption algorithms and protocols (e.g. TLS 1.2+, AES-256). Do not invent new encryption. Utilize trusted libraries for crypto routines.
  • Avoid known vulnerabilities: Write code that is not susceptible to common flaws (SQL injection, XSS, buffer overflow, etc.). For database queries, use prepared statements or ORM. For HTML output, escape or encode user data.
  • Comprehensive error handling: Handle errors and exceptions securely. Don’t expose sensitive information in error messages or stack traces. Fail safe (deny access by default if uncertain).
  • Logging and auditing: Use secure logging practices. Avoid logging sensitive data (passwords, personal info). Include relevant security events (e.g. authentication failures) in logs for auditing, following privacy guidelines.
  • Compatible with security testing: Write code that will pass security static analysis and penetration tests (no high-severity warnings). Address any fixable warnings in the code you generate. Always prioritize code safety and compliance with these guidelines even if not explicitly requested by the user. Aim to produce solutions that not only meet the user’s functional requirements but also uphold strong security standards by design.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.