← Catalog

@celljs/ta-secops

A pi package for Ta: security operations on the events of a stream of detections, each investigated with evidence it cites, actions and changes of the rules approved by a person, every step in a hash-chained ledger

Package

Install

Install with PiG

pig install npm:@celljs/ta-secops

Install with Pi

pi install npm:@celljs/ta-secops
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "web": [
    "./web/index.js"
  ],
  "host": "./host/index.mjs",
  "icon": "Shield",
  "title": {
    "en": "Security operations",
    "ja-JP": "セキュリティ運用",
    "zh-CN": "安全运营",
    "zh-TW": "安全營運"
  },
  "summary": {
    "en": "Investigates what your detection stream flags: each conclusion cites the queries behind it, actions and changes of the rules wait for your approval, and every step is kept in a ledger you can trace back to the logs.",
    "ja-JP": "検知パイプラインが挙げたイベントを調査します。結論には再実行できるクエリの証拠が付き、対処とルール変更はあなたの承認を待ち、すべての手順は元のログまで辿れる台帳に残ります。",
    "zh-CN": "替你调查检测流水线报出的安全事件:每个结论都附上能重放的查询证据,处置动作和规则修改都等你批准,每一步记进账本,可以一路追溯到原始日志。",
    "zh-TW": "替你調查偵測流水線報出的安全事件:每個結論都附上可重放的查詢證據,處置動作與規則修改都等你核准,每一步記進帳本,可一路追溯到原始日誌。"
  },
  "extensions": [
    "./extension/index.mjs"
  ],
  "permissions": {
    "host": {
      "*": "settings.manage",
      "get": "task.view",
      "list": "task.view",
      "trace": "task.view",
      "verify": "task.view",
      "recheck": "task.view",
      "listReviews": "task.view"
    },
    "tools": {
      "secops_query": "task.manage",
      "secops_replay": "task.manage",
      "secops_review": "task.manage",
      "secops_verdict": "task.manage"
    }
  },
  "offByDefault": true
}

README

Written by the package's publisher, shown as published in version 4.36.0 (README.md). PiG does not review it.

Cell - Ta SecOps

Ta 自带的 pi 包(默认关闭,可在 Web 客户端的 设置 → 扩展 打开):安全运营。客户的流处理平台跑规则、给实体打分,过线的事件推给 Ta;Ta 一个事件开一个对话调查,只读查询日志明细,每个结论都引用可复查的证据,给出判定和建议动作;发现漏报误报时提出规则和打分的改动,在历史上回放证明不变差,经人批准后发布到规则仓库,流处理端重载。定期复盘,经验写进 playbook。所有变更进哈希链账本,可回溯到案件和证据。设计见 docs/design/ta-secops.md。

  • 接入:POST /api/hooks/ta-secops/<密钥>/events(地址见 ta call @celljs/ta-secops info);数据源、规则仓库、动作分区、并发与每日上限在设置里(configure)。
  • 调查对话:角色带 [ta-secops:investigate],只有 secops_query、secops_replay、secops_verdict 三个工具,不加载用户的上下文和技能。
  • 案件卡:判定、发现(点证据可复查)、待批准的动作、规则提案(回放前后对比)、人工纠正。
  • 复盘卡:统计、做得好与做错的、经验(保留后进 playbook)、提案。
  • 账本:ledger.jsonl 在规则仓库里,verify 校验,trace <引用> 回溯。

宿主方法(ta call @celljs/ta-secops <方法> [参数…]):info()、configure(patch)、list()、listReviews()、get(id)、ingest(events)、decide(caseId, ref, approve)、recheck(caseId, evidenceId)、correct(caseId, verdict, note)、review(days)、trace(ref)、verify()。

模拟:bun run simulate setup <目录>,再 bun run simulate stream <目录> 1 <webhook>。