·insecure-temp-files-anti-pattern
!

insecure-temp-files-anti-pattern

不安全临时文件的安全反模式 (CWE-377)。在生成或检查创建临时文件、处理文件缓存或通过临时存储处理上传的代码时使用。检测可预测的路径、不安全的权限和缺失的清理。

0安装·0热度·@igbuend

安装

$npx skills add https://github.com/igbuend/grimbard --skill insecure-temp-files-anti-pattern

如何安装 insecure-temp-files-anti-pattern

通过命令行快速安装 insecure-temp-files-anti-pattern AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/igbuend/grimbard --skill insecure-temp-files-anti-pattern
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:igbuend/grimbard。

SKILL.md

查看原文

Insecure temporary file creation exposes three attack vectors: predictable file names enabling symlink attacks, insecure permissions allowing unauthorized access, and missing cleanup leaving sensitive data on disk. Attackers exploit these to read sensitive data, inject malicious content, or cause denial of service. AI-generated code frequently suggests simplistic file handling vulnerable to these attacks.

Never create temporary files without securing their location, naming, permissions, and lifecycle management.

Using a predictable name for a temporary file creates a race condition. An attacker can guess the file name and create a symbolic link (symlink) at that location pointing to a sensitive system file. When the application writes to its "temporary" file, it is actually overwriting the linked file.

不安全临时文件的安全反模式 (CWE-377)。在生成或检查创建临时文件、处理文件缓存或通过临时存储处理上传的代码时使用。检测可预测的路径、不安全的权限和缺失的清理。 来源:igbuend/grimbard。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/igbuend/grimbard --skill insecure-temp-files-anti-pattern
分类
!安全工具
认证
收录时间
2026-03-13
更新时间
2026-03-13

Browse more skills from igbuend/grimbard

快速解答

什么是 insecure-temp-files-anti-pattern?

不安全临时文件的安全反模式 (CWE-377)。在生成或检查创建临时文件、处理文件缓存或通过临时存储处理上传的代码时使用。检测可预测的路径、不安全的权限和缺失的清理。 来源:igbuend/grimbard。

如何安装 insecure-temp-files-anti-pattern?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/igbuend/grimbard --skill insecure-temp-files-anti-pattern 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/igbuend/grimbard