implementing-runtime-application-self-protection
它能做什么
这个工具可以帮你保护 Web 应用免受攻击。它在应用内部工作,监控应用的行为,并在危险操作造成损害之前将其拦截。
适用场景
- ✓当你为 Web 应用配置安全防护时。
- ✓当你需要确保应用能够抵御常见攻击时。
- ✓当你想把新的安全工具集成到系统中时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-runtime-application-self-protection/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为我的 Java 应用设置运行时防护。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会在你的应用中安装一个“代理程序”(agent)。该代理程序会实时监控应用的操作,并拦截攻击行为,例如 SQL 注入或未经授权的文件访问。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Implementing Runtime Application Self-Protection
Overview
Runtime Application Self-Protection (RASP) instruments application code at runtime to detect and block attacks by examining actual execution context rather than relying solely on network traffic patterns. Unlike WAFs that inspect HTTP requests externally, RASP agents intercept dangerous operations (SQL queries, file operations, command execution, deserialization) at the function level inside the application, achieving near-zero false positives. This skill covers deploying OpenRASP for Java applications, configuring detection policies for OWASP Top 10 attacks, tuning alerting thresholds, and integrating RASP telemetry with SIEM platforms.
When to Use
- When deploying or configuring implementing runtime application self protection capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Java 8+ application server (Tomcat, Spring Boot, or JBoss) or Python Flask/Django application
- OpenRASP agent package (rasp-java or equivalent)
- OpenRASP management console for centralized policy management
- SIEM integration endpoint (Splunk HEC, Elasticsearch, or syslog)
- Application staging environment for RASP testing before production
Steps
Step 1: Deploy RASP Agent
Install the RASP agent into the application server runtime using JVM agent attachment for Java or middleware hooks for Python.
Step 2: Configure Detection Policies
Define detection rules for SQL injection, command injection, SSRF, path traversal, XXE, and deserialization attacks with block or monitor actions.
Step 3: Tune and Baseline
Run the agent in monitor mode during normal operations to establish baseline behavior and tune policies to reduce false positives before switching to block mode.
Step 4: Integrate with SIEM
Forward RASP alerts to the SIEM for correlation with WAF, IDS, and authentication events to build comprehensive attack timelines.
Expected Output
JSON report containing RASP policy audit results, detected attack attempts with stack traces, blocked requests summary, and coverage assessment against OWASP Top 10.
常见问题
RASP 和 WAF 有什么区别?
WAF(Web 应用防火墙)从外部保护应用,检查网络流量。RASP(运行时应用自我保护)则从内部保护,观察应用实际的运行行为。
使用这个工具需要具备技术知识吗?
建议你对 Java 或 Python 应用服务器有一定了解,并掌握基本的安全概念。
什么是“误报”(false positives)?
当安全工具误以为某个合法的应用操作是攻击而将其拦截时,就会产生误报。
详情
作者的原始描述
Deploy Runtime Application Self-Protection (RASP) agents to detect and block attacks from within application runtime, covering OpenRASP integration, attack pattern detection, and security policy configuration for Java and Python web applications.
热度
- GitHub 星标
- 35k
- 排名
- #8109
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。