freshcrate
Skin:/
Home > Security > project-codeguard

project-codeguard

Project CodeGuard is an open-source, model-agnostic security framework that embeds secure-by-default practices into AI coding agent workflows. It provides comprehensive security rules that guide AI as

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

Project CodeGuard is an open-source, model-agnostic security framework that embeds secure-by-default practices into AI coding agent workflows. It provides comprehensive security rules that guide AI assistants to generate more secure code automatically.

README

Project CodeGuard: Security Skills and Rules for AI Coding Agents

Securing Open Source License: CC BY 4.0

This repository is for the work of the Coalition for Secure AI (CoSAI). CoSAI is an OASIS Open Project and an open ecosystem of AI and security experts from industry-leading organizations. We are dedicated to sharing best practices for secure AI deployment and collaborating on AI security research and tool development.

For more information on CoSAI, please visit the CoSAI website and the Open Project repository, which contains our governance information and project charter.

What is Project CodeGuard?

Project CodeGuard is an AI model-agnostic security coding agent skills framework and ruleset that embeds secure-by-default practices into AI coding workflows (generation and review). It ships core security skills and rules, translators for popular coding agents, and validators to test skills and rule compliance.

Why Project CodeGuard?

AI coding agents are transforming software engineering, but this speed can introduce security vulnerabilities. Is your AI coding agent implementation introducing security vulnerabilities?

  • Skipping input validation
  • Hardcoding secrets and credentials
  • Using weak cryptographic algorithms
  • Relying on unsafe functions
  • Missing authentication/authorization checks
  • Missing any other security best practice

Project CodeGuard solves this by embedding security best practices directly into AI coding agent workflows.

During and After Code Generation.

Project CodeGuard is designed to integrate seamlessly across the entire AI coding lifecycle.

  • Before code generation, skills and rules can be used for the design of a product and for spec-driven development. You can use the skills and rules in the “planning phase” of an AI coding agent to steer models toward secure patterns from the start.
  • During code generation, skills and rules can help AI agents to prevent security issues as code is being written.
  • After code generation, AI agents like Cursor, GitHub Copilot, Codex, Windsurf, and Claude Code can use the rules for code review.

Security Coverage

Project CodeGuard skills and rules cover essential security domains:

  • Cryptography: Safe algorithms (including post-quantum cryptography), secure key management, certificate validation
  • Input Validation: SQL injection prevention, XSS protection, command injection defense
  • Authentication: MFA best practices, OAuth/OIDC, secure session management
  • Authorization: RBAC/ABAC, access control, IDOR prevention
  • Supply Chain: Dependency security, SBOM generation, vulnerability management
  • Cloud Security: IaC hardening, container security, Kubernetes best practices
  • Platform Security: Mobile apps, web services, API security
  • Data Protection: Privacy, encryption at rest/transit, secure storage

Quick Start

Get started in minutes:

  1. Download the skills and rules from our releases page
  2. Copy to your project - Place AI agent and IDE specific skills and rules in your repository
  3. Start coding - AI assistants will automatically follow security best practices

CodeGuard MCP Server

This repository also includes an MCP server that exposes all CodeGuard security rules as tools over streamable HTTP. Organizations can deploy it on their infrastructure and connect every developer's AI coding assistant to a single, centrally managed instance. See the CodeGuard MCP Server README for setup instructions.

How It Works

  1. Security skills and rules are written in unified markdown format (sources/ directory)
  2. Conversion tools translate skills and rules into formats for popular coding agents
  3. Release automation packages skills and rules into downloadable ZIP files
  4. AI assistants reference these skills and rules when generating or reviewing code
  5. Secure code is produced automatically without developer intervention

Release History

VersionChangesUrgencyDate
v1.3.1**Rule content unchanged from v1.3.0** — packaging/tooling only. Adds `ide-rules-codex.zip` and `ide-rules-opencode.zip` release assets. ## What's Changed * Revise project title in index.md by @santosomar in https://github.com/cosai-oasis/project-codeguard/pull/21 * Add automated rules update workflow with documentation by @thomas-bartlett in https://github.com/cosai-oasis/project-codeguard/pull/25 * docs: added owasp vs core and rule types section by @ramraaj25 in https://github.com/cosaiMedium3/11/2026
v1.3.0## What's Changed * Transitioning from the old Project CodeGuard repo to CoSAI.Low1/30/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

adk-pythonAn open-source, code-first Python toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.v2.2.0
samplesAgent samples built using the Strands Agents SDK.main@2026-06-04
agent-frameworkA framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.dotnet-1.9.0
Secure-Agent-LauncherBlock AI agent access to sensitive macOS paths and log all actions to protect private data during command execution.main@2026-06-03
quickstart-streaming-agentsBuild, deploy, and orchestrate event-driven agents natively on Apache Flink® and Apache Kafka®master@2026-06-02

More in Security

clineAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
E2BOpen-source, secure environment with real-world tools for enterprise-grade agents.
OpenSandboxSecure, Fast, and Extensible Sandbox runtime for AI agents.
vm0the easiest way to run natural language-described workflows automatically