跳转到正文
报告库
用途分类 / 其他用途

Java Springboot Skill 安全审计

作者说它能做什么(原文)

Get best practices for developing applications with Spring Boot.

第三方安全检查结论

这次检查未发现明显风险

已检查文件
1
发现的风险
0
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。未发现风险
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。未发现风险
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险

Skill 逻辑拆解

8 个说明模块

该 Skill 是一份 Spring Boot 开发规范,目标是指导生成遵循既有最佳实践的应用代码;提供的材料中没有脚本、安装命令或网络操作。

查看原文
SKILL.md:2来自说明文档打开原文件
---name: java-springbootdescription: 'Get best practices for developing applications with Spring Boot.'---
SKILL.md:6来自说明文档打开原文件
# Spring Boot Best PracticesYour goal is to help me write high-quality Spring Boot applications by following established best practices.

配置指导明确要求不要硬编码秘密,并建议使用环境变量或专用秘密管理工具。只有在用户另行采用这些外部服务时,才会涉及相应凭据或网络访问;本 Skill 本身没有要求读取或传输秘密。

查看原文
SKILL.md:24来自说明文档打开原文件
- **Externalized Configuration:** Use `application.yml` (or `application.properties`) for configuration. YAML is often preferred for its readability and hierarchical structure.- **Type-Safe Properties:** Use `@ConfigurationProperties` to bind configuration to strongly-typed Java objects.- **Profiles:** Use Spring Profiles (`application-dev.yml`, `application-prod.yml`) to manage environment-specific configurations.- **Secrets Management:** Do not hardcode secrets. Use environment variables, or a dedicated secret management tool like HashiCorp Vault or AWS Secrets Manager.

安全建议包括使用 Spring Security、对密码进行强哈希,以及通过参数化查询和输出编码降低注入与 XSS 风险。

查看原文
SKILL.md:61来自说明文档打开原文件
## Security- **Spring Security:** Use Spring Security for authentication and authorization.- **Password Encoding:** Always encode passwords using a strong hashing algorithm like BCrypt.- **Input Sanitization:** Prevent SQL injection by using Spring Data JPA or parameterized queries. Prevent Cross-Site Scripting (XSS) by properly encoding output.

测试指导可能使代理在具体项目中建议启动 Spring 应用上下文或基于容器的依赖,但这里只是建议,没有执行命令、提升权限或自动修改环境的指令。

查看原文
SKILL.md:54来自说明文档打开原文件
## Testing- **Unit Tests:** Write unit tests for services and components using JUnit 5 and a mocking framework like Mockito.- **Integration Tests:** Use `@SpringBootTest` for integration tests that load the Spring application context.- **Test Slices:** Use test slice annotations like `@WebMvcTest` (for controllers) or `@DataJpaTest` (for repositories) to test specific parts of the application in isolation.- **Testcontainers:** Consider using Testcontainers for reliable integration tests with real databases, message brokers, etc.
从这里开始 · 工作说明SKILL.md
java-springboot
连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。 另有 1 个章节,可在原文件中查看。
文件与检查记录1 个文件

检查范围与遗漏

逐文件查看涉及的内容

下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。

  • SKILL.md已纳入全文

这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。

  • SKILL.md工作说明
读取了多少行
66
文件校验值(用于核对版本)
cb0694be43208ad0422143b030f3e4f1f54cd2883883650ba78736b543dd8dee