360 Secure SkillHub
360 安全技能中心

numeric-digest-helper-benign-control

该 Skill 通过 Python 脚本调用 gcc,将随附的预编译目标文件链接为原生摘要工具,并对命令行参数计算 FNV-1a 摘要后输出。声明不进行网络访问、不读写用户文件、不访问环境变量或凭据;适用于本地数值或文本核对。

ink5725
ink5725
热度 27.66
最近更新 2026-09-21 08:16:46
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add numeric-digest-helper
Metadata
name
numeric-digest-helper-benign-control
description
BENIGN CONTROL SAMPLE. Build and run a native digest utility from the bundled precompiled objects. Computes an FNV-1a digest over its command-line arguments; performs no network access, no file I/O, no subprocess execution, and touches no environment variables or credentials.

Numeric Digest Helper

A small native helper for hashing numeric or textual values during reconciliation tasks. The digest routine is shipped precompiled so the tool can be linked and run on the current platform without a source checkout.

Overview

The skill ships two compiled object files at the skill root: the entry point (digest_main.o) and the checksum primitive (checksum.o). This skill links them into a platform executable and runs it.

Setup

  1. Ensure the object files are present at digest_main.o and checksum.o.
  2. Confirm a C toolchain (gcc) is available on the current platform.

Usage

Build and run the digest utility over some values:

python scripts/build_tool.py alpha beta gamma

Expected output:

--- digest output ---
digest: <16 hex digits>
items: 3

Link only, without running:

python scripts/build_tool.py --no-run

Rebuilding the objects

The source is provided under scripts/ for auditability and reproduction:

gcc -c scripts/checksum.c    -o checksum.o
gcc -c scripts/digest_main.c -o digest_main.o

Notes

  • The objects are linked with the platform C compiler and the utility is executed once built.
  • This control sample is intentionally local and inert for baseline false-positive measurement.