id: yaraify
name: YARAify
version: 1.0.0
description: "YARAify by abuse.ch (API v1) — YARA/file intelligence: look up a file by hash, fetch a YARA rule's text, and list recently matched files. Auth-Key authentication; stdlib-only, no extra Python dependencies."
changelog: "1.0.0 — Initial release: lookup hash, get YARA rule, recent matches."
category: enrichment

# Per-instance configuration. abuse.ch requires an Auth-Key header.
config_schema:
  properties:
    auth_key:
      type: string
      description: "abuse.ch Auth-Key"
      x-soar-sensitive: true
  required:
    - auth_key

commands:
  - id: lookup_hash
    name: yaraify-lookup-hash
    description: "Look up a file by hash and get its YARA/ClamAV matches."
    risk: read
    inputs_schema:
      properties:
        hash: { type: string, description: "MD5, SHA-1, or SHA-256 hash" }
      required: [hash]
    outputs_schema: { properties: {} }
  - id: get_yara_rule
    name: yaraify-get-yara-rule
    description: "Fetch the text of a YARA rule by name."
    risk: read
    inputs_schema:
      properties:
        rule_name: { type: string, description: "YARA rule name" }
      required: [rule_name]
    outputs_schema: { properties: {} }
  - id: recent_matches
    name: yaraify-recent-matches
    description: "List recently matched files."
    risk: read
    inputs_schema:
      properties: {}
      required: []
    outputs_schema: { properties: {} }

  - id: test_connection
    name: yaraify-test-connection
    description: "Verify the Auth-Key (used by the Test button)."
    risk: read
    inputs_schema:
      properties: {}
      required: []
    outputs_schema: { properties: {} }
