This skill is designed to protect sensitive files on the user's local system, preventing them from being inadvertently sent to remote servers or external APIs. It performs deep content inspection across various file formats.
该技能用于保护用户本地系统中的敏感文件,避免这些文件被意外发送到远程服务器或外部 API。它支持对多种文件格式进行深度内容检查。
upload, send, read_file, file tool actions), you MUST first scan the target file for sensitive information using the provided scan_file.py script. This is a non-negotiable step.scan_file.py script returns an output starting with BLOCK:, you MUST immediately and unconditionally stop the current task. You are strictly forbidden from proceeding with the operation or attempting to bypass this restriction. Inform the user clearly about the detected sensitive content and the cessation of the operation.PASS: result from this skill.The skill performs deep content scanning for the following formats:
.txt, .csv, .md, .json, .xml, .log, .py, .js, .html.pdf, .docx.xlsxThe skill monitors for the following four categories of sensitive information:
Install required dependencies once before running scans:
python3 -m pip install -r {baseDir}/requirements.txt
Optional helper:
bash {baseDir}/scripts/install_deps.sh
Before processing any file path, call the built-in scanning script using a relative path from the skill's base directory:
python3 {baseDir}/scripts/scan_file.py <file_path>
BLOCK::PASS::Scenario: User requests "Send this contract to my boss"
python3 {baseDir}/scripts/scan_file.py ./contract.pdf.BLOCK: Sensitive keyword '合同' found in content (Category: Contract/Agreement)., stop and inform the user.共 1 个版本