360 Secure SkillHub
360 安全技能中心

numeric-digest-helper-benign-control

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

分类:效率
ink5725
ink5725
热度 4.43
最近更新 2026-09-21 08:16:46

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ink5725/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.