cursor-security-rules logo
cursor-security-rules
★ 383
vs
www-project-agent-memory-guard logo
www-project-agent-memory-guard
★ 188

cursor-security-rules vs www-project-agent-memory-guard

cursor-security-rules: Cursor Security Rules help prevent the generation of unsafe code by enforcing guardrails against risky patterns like exposing secrets or running dangerous commands. They are essential for fostering a security-first development culture in AI-assisted environments.; www-project-agent-memory-guard: OWASP Agent Memory Guard is a runtime defense solution designed to prevent AI agents from being weaponized through their own memory by detecting and blocking memory poisoning attacks. It provides a robust security layer that intercepts malicious writes to agent memory, ensuring the integrity and safety of AI operations even after context resets.

01

TL;DR

cursor-security-rules logo
cursor-security-rulesSecurity & Safety · ★ 383

Securing AI-assisted code generation in Cursor

www-project-agent-memory-guard logo
www-project-agent-memory-guardSecurity & Safety · ★ 188

Reference implementation for OWASP ASI06: Memory Poisoning.

02

Side-by-Side Comparison

Field
cursor-security-rules logocursor-security-rules
www-project-agent-memory-guard logowww-project-agent-memory-guard
Category
Security & Safety
Security & Safety
Stars
★ 383
★ 188
License
MIT
Apache-2.0
Install Command
git clone https://github.com/matank001/cursor-security-rules.git
pip install agent-memory-guard
Updated
1y ago
1d ago
Open Source
Yes
Yes
Tags
AI Security, Code Safety, Development Guidelines
AI Security, Agent Defense, Memory Protection
03

Features

cursor-security-rules logocursor-security-rules
01Enforce safe coding practices
02Prevent accidental exposure of secrets
03Control sensitive operations
04Foster a security-first development culture
05Avoid risky patterns automatically
www-project-agent-memory-guard logowww-project-agent-memory-guard
01Integrity: SHA-256 baselines flag out-of-band tampering with immutable keys.
02Threat detection: Built-in detectors for prompt injection, sensitive data leakage, protected-key modifications, size anomalies, and self-reinforcement loops.
03Policy enforcement: YAML-defined rules map findings to actions like `allow`, `redact`, `quarantine`, or `block`.
04Forensics: Every decision emits a structured `SecurityEvent`, with point-in-time snapshots for rollback to a known-good state.
05Drop-in middleware: Ships with `GuardedChatMessageHistory` for LangChain and general framework-agnostic `MemoryStore` protocol.
04

Use Cases

cursor-security-rules logocursor-security-rules
↳Securing AI-assisted code generation in Cursor
↳Preventing data leaks and command injection in AI-generated code
↳Establishing security best practices for developers using AI tools
www-project-agent-memory-guard logowww-project-agent-memory-guard
↳Reference implementation for OWASP ASI06: Memory Poisoning.
↳AI security research, such as at Microsoft.
↳Securing multi-tenant agent deployments with compliance requirements in enterprise teams.
↳Protecting LangChain, OpenAI Agents SDK, AutoGen, mem0, and CrewAI based agents from memory-based attacks.
FAQ

FAQ

What is the difference between cursor-security-rules and www-project-agent-memory-guard?
Both cursor-security-rules and www-project-agent-memory-guard are in the Security & Safety category. cursor-security-rules has 383 stars, while www-project-agent-memory-guard has 188 stars.
Which is better, cursor-security-rules or www-project-agent-memory-guard?
The best choice depends on your use case. Choose cursor-security-rules if Securing AI-assisted code generation in Cursor, and www-project-agent-memory-guard if Reference implementation for OWASP ASI06: Memory Poisoning..
Is cursor-security-rules free or open source?
Yes, cursor-security-rules is open source on GitHub (MIT).
Is www-project-agent-memory-guard free or open source?
Yes, www-project-agent-memory-guard is open source on GitHub (Apache-2.0).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related