{
  "ml": {
    "analyzed_at": "2026-11-23T12:21:06Z",
    "files": [
      {
        "lvl": 100,
        "prob": 0.9218333,
        "id": 0
      },
      {
        "lvl": -1,
        "id": 1
      },
      {
        "lvl": -1,
        "id": 2
      },
      {
        "lvl": -1,
        "id": 3
      },
      {
        "lvl": -1,
        "id": 4
      },
      {
        "lvl": -1,
        "id": 5
      },
      {
        "lvl": -1,
        "id": 6
      },
      {
        "lvl": -1,
        "id": 7
      },
      {
        "lvl": -1,
        "id": 8
      }
    ],
    "lvl": 100,
    "mods": [
      {
        "cls": 0
      }
    ],
    "prob": 0.9218333,
    "v": "7",
    "version": "v20.20"
  },
  "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c",
  "raw": {
    "files": [
      {
        "depth": 0,
        "facts": {
          "metrics": {
            "archive": {
              "compressed_size": 11508,
              "compression.method_counts.deflate": 7,
              "compression.ratio": 0.45,
              "crc_collision_count": 0,
              "directory_count": 0,
              "double_extension_count": 0,
              "duplicate_member_count": 0,
              "entry_comment_count": 0,
              "eocd_signature_count": 1,
              "executable_count": 0,
              "extra_field_size": 0,
              "file_count": 7,
              "format.regular_count": 7,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "local_header_signature_count": 7,
              "max_filename_length": 19,
              "member_count": 7,
              "misplaced_executable_count": 0,
              "nested_archive_count": 0,
              "noise_file_count": 0,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_count": 5,
              "security.encrypted_count": 0,
              "security.setgid_count": 0,
              "security.setuid_count": 0,
              "security.sticky_count": 0,
              "security.symlink_count": 0,
              "security.world_writable_count": 0,
              "symlink_escape_count": 0,
              "timing.mtime_dominant_count": 1,
              "timing.mtime_dominant_ratio": 0.14,
              "timing.mtime_spread_seconds": 2138,
              "timing.mtime_unique_count": 7,
              "timing.mtime_unique_ratio": 1,
              "timing.sentinel_mtime_count": 0,
              "uncompressed_size": 25640,
              "unicode_filename_count": 5,
              "zip_bomb_ratio": 2.64
            },
            "binary": {
              "peak_region_bytes": 11264,
              "peak_region_entropy": 7.84
            },
            "file": {
              "entropy": 7.94,
              "size": 12246
            }
          }
        },
        "id": 0,
        "mol": "H₇(Cm₁₁Cr₈Db₁₃F₁₇Os₇Po₁₈Ti₃)Md₅(In₅NePt₈)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c",
        "risk": 43,
        "sha": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c",
        "size": 12246,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive member has a batch extension",
            "id": "metadata/archive/member/extension::archive-bat-member"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive member has a batch extension",
            "id": "metadata/archive/member/extension::archive-batch-member"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch contains a long token",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "metadata/file/line::batch-has-long-token"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Zip basename is a hexadecimal hash",
            "id": "metadata/filename/shape::hex-hash-zip-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Imports Node net as a namespace",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/builtin::node-net-namespace-import"
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "require('crypto') call",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/builtin::require-crypto"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:crypto",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/npm/crypto::crypto"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:fs",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/npm/fs::fs"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:net",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/npm/net::net"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:tls",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/npm/tls::tls"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "AES-256-GCM algorithm name",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/literal/string/cryptography::aes-256-gcm-dash"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "PowerShell cmdlet names in embedded text",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/lang/source/naming/action/token::powershell-cmdlet-text"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Assigns the name property on an object",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/assignment/member::object-name-property-assignment"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Identifier += assignment expression",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/assignment/value::js-addition-assignment-identifier"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Connect call uses object host/port fields",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/call/arguments::js-connect-host-port-object-call"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Calls a digest() method",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/call/member::js-digest-method-call"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Socket-named object write-call text",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/call/member::socket-named-write-call-text"
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Batch START command site",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/syntax/command/control::batch-start-command-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "START command specifies an empty window title",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/syntax/command/control::start-empty-window-title"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Object literal declares host or user",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/identity-field::host-user-object-fields"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "tls.connect specifies SNI servername",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/http/tls::tls-connect-servername",
            "mbc": "C0005"
          },
          {
            "atk": "T1071.001",
            "conf": 0.95,
            "crit": 3,
            "desc": "JavaScript call argument contains loopback IP",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/ip/literal::javascript-loopback-call-argument"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "HiveMQ broker endpoint",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/communications/messaging/mqtt::hivemq-broker-endpoint"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Binds or listens on the loopback address",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/bind/address::bind-loopback-address"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Node TLS module connects a socket",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/connect/attempt::node-tls-connect",
            "mbc": "C0001"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Node datagram module creates a socket",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/create::node-dgram-create-socket",
            "mbc": "C0001"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Node net module creates a server",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/listen::node-net-create-server",
            "mbc": "C0001"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Node generic server listens on endpoint",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/listen::node-server-listen-generic",
            "mbc": "C0001"
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Node server listens on 127.0.0.1",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/listen::node-server-listens-on-loopback-address",
            "mbc": "C0001"
          },
          {
            "atk": "T1071",
            "conf": 0.78,
            "crit": 3,
            "desc": "Node socket data event handler",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/receive::node-socket-data-event",
            "mbc": "C0001"
          },
          {
            "atk": "T1071",
            "conf": 0.92,
            "crit": 3,
            "desc": "Node socket writes JSON payload",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/socket/send/content::node-socket-json-write",
            "mbc": "C0001"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node TLS verification disabled by option",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/tls/verify/disable::reject-unauthorized-false"
          },
          {
            "atk": "T1071",
            "conf": 0.85,
            "crit": 3,
            "desc": "HTTP request with custom port (4+ digits)",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/url/host/port-http::http-custom-port-number"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "setAuthTag with buffer slice text",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/cipher/authentication::auth-tag-sliced-from-buffer",
            "mbc": "C0027"
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Retrieves a cipher encryption authentication tag",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/cipher/authentication::node-cipher-get-auth-tag"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls a setAuthTag method",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/cipher/authentication::set-auth-tag"
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Creates AES-GCM decipher",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/cipher/mode::node-aes-gcm-decipher-call"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Initialize Node.js decrypting cipher with IV",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/decrypt/initialize::createDecipheriv"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Initializes a Node AES-GCM decipher",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/decrypt/initialize::node-aes-gcm-decipher-initialization"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Initialize Node.js encrypting cipher with IV",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/encrypt/initialize::createCipheriv"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "IV and authentication-tag concatenation",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/encrypt/transform::iv-auth-tag-concat"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Node.js createHash('sha256') call",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/hash/digest/sha2::node-createhash-sha256-call"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "Node.js createHash call",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/hash/digest/unnamed-algorithm::node-createhash-call"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "AES algorithm string prefix",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/crypto/symmetric/aes/reference::aes-algorithm"
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "Spaced subtraction between identifiers",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/arithmetic::js-identifier-subtraction"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Creates Node.js Buffer from UTF-8 text",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/buffer/alloc::buffer-from-utf8"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node builds Buffer from integer list",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/buffer/alloc::js-buffer-from-int-list"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Creates Node.js Buffer from JSON serialization",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/buffer/alloc::node-buffer-from-json-stringify"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Writes 16-bit big-endian buffer value",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/buffer/integer-codec::uint16-be-buffer-write"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Writes a buffer argument to a stream",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/buffer/transfer::stream-write-buffer-arg"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JavaScript empty catch block",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::empty-catch-block"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JavaScript emitter discards errors",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::silent-error-handler"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "For loop contains a try block",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/try::js-for-with-try"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Batch FOR-in loop syntax",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/data/control-flow/loop/collection::batch-for-in-loop"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Top-level method call on require result",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/control-flow/module-exec::module-level-imported-method-call"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Module scope assigns zero-argument call",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/control-flow/module-exec::module-scope-zero-arg-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls a delete method with an argument",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/control-flow/sequence::delete-method-call"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Base64 decoding via Buffer.from (JS)",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/decode/base64/call::buffer-from-base64"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Base64 encoding via toString (JS)",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/encode/base64/primitive::tostring-base64"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/data/format/script::embedded-batch-delayed-expansion"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "JSON.parse call, dotted or computed member",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/parse/json::js-json-parse-direct-or-computed"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Calls JSON.stringify()",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-stringify-call"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Serializes an identifier as JSON",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-stringify-identifier"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes value with JSON.stringify",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-stringify-text-call"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Batch contains DEL or ERASE calls",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/fs/delete/file/command::batch-del-call"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Batch DEL with force or quiet switch",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/fs/delete/file/command::batch-del-force-quiet-switch"
          },
          {
            "atk": "T1070.004",
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls synchronous Node unlink method",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/delete/file/library::fs-unlinkSync",
            "mbc": "C0047"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls file remove, unlink, or DeleteFile",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/delete/path::script-file-unlink-call"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node synchronously reads file metadata",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/file/stat::node-stat-sync-call"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Node empty file write uses default mode",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/file/truncate::node-empty-write-default-mode"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Literal references AppData directory path",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/path/app-data/platform::appdata-root-path-literal"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "JavaScript references the AppData directory",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/path/app-data/platform::javascript-appdata-directory-reference"
          },
          {
            "conf": 0.82,
            "crit": 3,
            "desc": "Windows AppData directory path reference",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/path/app-data/platform::windows-appdata-directory-path"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "PowerShell executable name or command options",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/path/application/interpreter::powershell-executable-token"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Literal ending in .bat or .cmd",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/path/extension::batch-command-extension-literal"
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "References script directory path",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/path/self::script-dirname-ref"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Windows user-profile folder path reference",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/path/user-directory::windows-user-folder-path-reference"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": ".NET reads text file",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/read/file/content/whole::read-all-text"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Reads files with Node.js",
            "from": [
              {
                "file": 1,
                "line": 45,
                "off": 1746
              }
            ],
            "id": "micro-behaviors/fs/read/file/content/whole::read-node",
            "uses": [
              79,
              80
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Calls readFile on bound Node fs module",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/read/file/content/whole::read-node-module-bound"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls fs.readFile or readFile",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/read/file/content/whole::read-node-symbol"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls readFileSync",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/read/file/content/whole::readfilesync-call"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Reads file line into batch variable",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/fs/read/file/partial::batch-set-p-file-line"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node file read near resource path",
            "from": [
              {
                "file": 1,
                "line": 45,
                "off": 1746
              }
            ],
            "id": "micro-behaviors/fs/read/file/target::node-file-read-near-resource-path",
            "uses": [
              71,
              78
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "File content write capability",
            "from": [
              {
                "file": 5,
                "off": 2623
              },
              {
                "file": 8,
                "off": 3107
              },
              {
                "file": 6,
                "off": 441
              },
              {
                "file": 7,
                "off": 567
              }
            ],
            "id": "micro-behaviors/fs/write/content::file-write-capability",
            "uses": [
              88,
              89
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node fs appends to a file synchronously",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/write/file/append::append-file-sync"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "writeFileSync target built by path.join",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/write/file/full/call::node-write-file-sync-join-path"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node fs writes to a file synchronously",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/write/file/full/call::write-file-sync"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Batch ECHO redirects content to file",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/write/file/redirect::batch-echo-redirect"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "ECHO file output or REGEDIT-header output",
            "from": [
              {
                "file": 5,
                "off": 2623
              },
              {
                "file": 8,
                "off": 3107
              },
              {
                "file": 6,
                "off": 441
              },
              {
                "file": 7,
                "off": 567
              }
            ],
            "id": "micro-behaviors/fs/write/file/redirect::echo-file-output-or-regedit-header",
            "uses": [
              88
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Node fs writeSync or writeFileSync call",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/write/file/reference::js-fs-write-sync"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "writeFileSync member reference",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/write/file/reference::node-write-file-sync"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "writeFileSync call name",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/write/file/reference::node-write-file-sync-call"
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Batch sets a console title",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/os/console/control::batch-console-title-command"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "chcp command token reference",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/os/console/control::chcp-command-token-reference"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Batch command redirects stdout to NUL",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/os/console/io::batch-command-stdout-nul"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch ECHO variable command text",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/os/console/io::batch-echo-variable-command-text"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Logs a single identifier with console.log",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/console/io::js-console-log-identifier"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "AppData environment lookup",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/os/env/path::appdata-path-lookup"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References Node APPDATA environment member",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/env/path::node-appdata-access"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "USERPROFILE path environment variable",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/env/path::userprofile-var"
          },
          {
            "atk": "T1059.007",
            "conf": 0.95,
            "crit": 3,
            "desc": "Sets ELECTRON_RUN_AS_NODE in child env",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/env/runtime::electron-run-as-node-env-injection"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Electron runtime environment variable reference",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/env/runtime::electron-runtime-variable-reference"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Binds Node filesystem module as fs",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/module/require::node-fs-const-binding"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the Node.js randomBytes API",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/random/crypto::node-random-bytes"
          },
          {
            "conf": 0.72,
            "crit": 3,
            "desc": "Generates UUID with Web Crypto",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/random/crypto::webcrypto-random-uuid"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node CLI handles SIGINT",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/os/signal::node-sigint-handler"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "PowerShell -Command or -c option text",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/argument/interpreter::powershell-c-flag"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "PowerShell command-option and prefix clues",
            "from": [
              {
                "file": 5,
                "off": 1321
              },
              {
                "file": 8,
                "off": 1584
              },
              {
                "file": 4,
                "off": 633
              }
            ],
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-launch",
            "uses": [
              107,
              110
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell command text with options",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-options-text"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell argument or operator prefix",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/argument/interpreter::powershell-option-or-operator-prefix"
          },
          {
            "atk": "T1564.003",
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell WindowStyle Hidden option",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/process/argument/interpreter::powershell-windowstyle-hidden-option"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Script runs when executed as main",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/argument/lifecycle::node-require-main-module-guard",
            "mbc": "B0024"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "PowerShell disables profile loading",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/argument/lifecycle::powershell-no-profile-flag"
          },
          {
            "atk": "T1059.001",
            "conf": 0.96,
            "crit": 3,
            "desc": "PowerShell execution or window option",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/process/argument/option::powershell-execution-or-window-option"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell command line carries a flag",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/argument/option::powershell-flagged-command-line"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Windows interpreter command has an option",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/argument/option::windows-interpreter-option-syntax"
          },
          {
            "atk": "T1059.001",
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell command text requests a hidden window",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/process/argument/visibility::powershell-hidden-command-text"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Sends or probes a Node process signal",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/control/signal::node-process-kill-call"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Probes process existence with signal zero",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/control/signal::node-process-liveness-probe"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Start-Process FilePath command text",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/process/create/cmdlet::start-process-filepath-text"
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Start-Process requests a hidden window",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/process/create/hidden::start-process-hidden-window-option"
          },
          {
            "atk": "T1564.003",
            "conf": 0.9,
            "crit": 3,
            "desc": "Start-Process hidden window flag",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/process/create/hidden::start-process-windowstyle-hidden"
          },
          {
            "atk": "T1059.003",
            "conf": 0.92,
            "crit": 3,
            "desc": "START command names a quoted executable",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/process/create/path-execution::start-quoted-executable-command"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Embedded PowerShell -Command text",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/deploy/interpreter-command::powershell-command-text"
          },
          {
            "atk": "T1057",
            "conf": 0.6,
            "crit": 3,
            "desc": "References the Windows tasklist command",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/enumerate/shell::tasklist"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Node process exit hook registered",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/exit/handler::js-process-on-exit-hook"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node explicitly exits with status zero",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/exit/terminate::node-explicit-success-exit"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Terminates Node.js process via process.exit",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/exit/terminate::node-process-exit-call"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Reads Node.js arguments through process.argv",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/info/commandline::check-argv"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Reads Node.js current process ID",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/info/current::node-process-pid-access"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/interpreter/scripting::delayed-expansion"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node process uncaughtException handler",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/lifecycle/error::process-on-uncaught-exception"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node process unhandledRejection handler",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/lifecycle/error::process-on-unhandled-rejection"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Filters a process-list result",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/process/lifecycle/supervise::watchdog-process-filter"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References PID file or background process ID",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/process/pid::node-pidfile-reference"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Parsed taskkill command invocation",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/process/terminate/command::taskkill-command-call"
          },
          {
            "conf": 0.78,
            "crit": 3,
            "desc": "taskkill PID argument",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/process/terminate/command::taskkill-pid-argument"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "taskkill terminates by PID",
            "from": [
              {
                "file": 3,
                "off": 189
              }
            ],
            "id": "micro-behaviors/process/terminate/command::taskkill-pid-command",
            "uses": [
              137,
              139
            ]
          },
          {
            "conf": 0.72,
            "crit": 3,
            "desc": "taskkill command token",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/process/terminate/command::taskkill-token"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Named setTimeout callback with numeric delay",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/time/schedule/delay::named-timeout-callback"
          },
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "setTimeout two to nine second delay",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/time/schedule/delay::settimeout-callback-short-delay"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Repeated interval timer",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/time/schedule/interval::interval-call-text"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Schedules a repeated callback with setInterval()",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/time/schedule/interval::setInterval"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Schedules a named timer callback",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/time/schedule/timeout::named-callback-timer"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Schedules a JavaScript callback with setTimeout",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/time/schedule/timeout::setTimeout"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports node:dgram",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/npm/dgram::dgram"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports node:path",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/npm/path::path"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Body member-name reference",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/member::message-body-member-name"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Type member-name reference",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/member::message-type-member-name"
          }
        ],
        "type": "zip"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-call-unavailable",
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "/**\r\n * QQPet å¬ç½æ¿é´æ¡¥ ââ æ MQTT æ¿é´ä¼ªè£æ\"åä¸å±åç½\"ï¼å® ç©ç«¯é¶æ¹å¨ã\r\n *\r\n * åçï¼\r\n *   QQPet çèæºèµ° LanNodeï¼UDP 47777 å¹¿æ­åç° + TCP ç´è¿æ¶åæ¶æ¯ã\r\n *   æ¬è¿ç¨å¨ 127.0.0.1 ä¸ååè¥å¹²\"å¥½å\"ï¼ç¨ UDP ååææå¼è®© QQPet ä¸»å¨åè¿æä»¬ç TCPï¼\r\n *   åæè¿æ¡æ¬å°è¿æ¥ä¸çæ¶æ¯ä¸å¬ç½ MQTT æ¿é´äºè½¬ã\r\n *\r\n * ç¨æ³ï¼\r\n *   ELECTRON_RUN_AS_NODE=1 QQPet.exe bridge.cjs         æ­£å¸¸å¯å¨\r\n *   ELECTRON_RUN_AS_NODE=1 QQPet.exe bridge.cjs --doctor èªæ£\r\n */\r\n\"use strict\";\r\nconst net = require(\"node:net\");\r\nconst dgram = require(\"node:dgram\");\r\nconst tls = require(\"node:tls\");\r\nconst fs = require(\"node:fs\");\r\nconst path = require(\"node:path\");\r\nconst crypto = require(\"node:crypto\");\r\n\r\nconst HERE = __dirname;\r\nconst CONF = path.join(HERE, \"config.json\");\r\nconst PID = path.join(HERE, \"bridge.pid\");\r\nconst LOG = path.join(HERE, \"bridge.log\");\r\nconst UDP_PORT = 47777;\r\nconst DEFAULT_BROKER = \"broker.emqx.io\";\r\nconst DEFAULT_PORT = 8883;\r\nconst HELLO_MS = 4000;      // åæ¬å° QQPet å®£åå¥½åçé´é\r\nconst PRESENCE_MS = 8000;   // åå¬ç½æ¿é´æ¥å°çé´é\r\nconst PEER_TIMEOUT = 24000; // è¿ç«¯å¤ä¹æ²¡æ¶æ¯ç®æçº¿\r\nconst DOCTOR = process.argv.includes(\"--doctor\");\r\n\r\n/* ---------------- æ¥å¿ ---------------- */\r\nfunction log(...a) {\r\n  const line = new Date().toISOString().slice(11, 19) + \" \" + a.join(\" \");\r\n  if (!DOCTOR) { try { fs.appendFileSync(LOG, line + \"\\r\\n\"); } catch {} }\r\n  console.log(line);\r\n}\r\nfunction trimLog() {\r\n  try { if (fs.statSync(LOG).size \u003e 512 * 1024) fs.writeFileSync(LOG, \"\"); } catch {}\r\n}\r\n\r\n/* ---------------- éç½® ---------------- */\r\nfunction conf() {\r\n  try { return JSON.parse(fs.readFileSync(CONF, \"utf8\")); } catch { return {}; }\r\n}\r\nconst cfg = conf();\r\nconst ROOM = String(cfg.room || \"\").trim();\r\nconst BROKER = String(cfg.broker || DEFAULT_BROKER);\r\nconst PORT = Number(cfg.port || DEFAULT_PORT);\r\nconst USERDATA = path.join(process.env.APPDATA || path.join(process.env.USERPROFILE || \".\", \"AppData\", \"Roaming\"), \"QQPet\");\r\n\r\n/* ---------------- èº«ä»½ ---------------- */\r\nfunction readJSON(p) { try { return JSON.parse(fs.readFileSync(p, \"utf8\")); } catch { return null; } }\r\nfunction myIdentity() {\r\n  const s = readJSON(path.join(USERDATA, \"save.json\"));\r\n  const id"
          },
          {
            "col": 31,
            "line": 60,
            "ln": 2509,
            "s": "\n    const f = path.join(HERE, \"self-id.txt\");\r\n    let v = \"\";\r\n    try { v = fs.readFileSync(f, \"utf8\").trim(); } catch {}\r\n    if (!v) { v = crypto.randomUUID(); try { fs.writeFileSync(f, v); } catch {} }\r\n    return v;\r\n  })();\r\n  return {\r\n    id: (idf \u0026\u0026 idf.id) || fallbackId,\r\n    name: p.name || \"å® ç©\",\r\n    host: p.host || \"\",\r\n    sex: p.sex || \"MM\",\r\n    level: Number(c.level || 1)\r\n  };\r\n}\r\n\r\n/* ---------------- æ¿é´ç  -\u003e ä¸»é¢ + "
          },
          {
            "col": 45,
            "line": 77,
            "ln": 3045,
            "s": "¾ï¼äºä¸å¯æ¨å¯¼ï¼é½æ¯åååå¸ï¼\r\nconst TOPIC_HASH = crypto.createHash(\"sha256\").update(\"qqpet-topic:\" + ROOM).digest(\"hex\");\r\nconst TOPIC_BASE = \"qqpet/v2/\" + TOPIC_HASH.slice(0, 16);\r\nconst T_PRESENCE = TOPIC_BASE + \"/p\";\r\nconst ownTopic = (id) =\u003e TOPIC_BASE + \"/d/\" + i"
          },
          {
            "col": 53,
            "line": 83,
            "ln": 3465,
            "s": "t-key:\" + ROOM).digest();\r\n\r\nfunction seal(obj) {\r\n  const iv = crypto.randomBytes(12);\r\n  const c = crypto.createCipheriv(\"aes-256-gcm\", KEY, iv);\r\n  const ct = Buffer.concat([c.update(Buffer.from(JSON.stringify(obj), \"utf8\")), c.final()]);\r\n  // iv(12) + authTag(16) + å¯æï¼æ´ä½ base64ï¼åç¼ v2 ä¾¿äºçæ¬åºå\r\n  return \"v2.\" + Buffer.concat([iv, c.getAuthTag(), ct]).toString(\"base64\");\r\n}\r\nfunction unseal(b64) {\r\n  try {\r\n    const s = String(b64);\r\n    if (!s.startsWith(\"v2.\")) return null; // æ§çæ··æ·åç´æ¥å¿½ç¥\r\n    const raw = Buffer.from(s.slice(3), \"base64\");\r\n    if (raw.length \u003c 29) return null;\r\n    const d = crypto.createDecipheriv(\"aes-256-gcm\", KEY, raw.subarray(0, 12));\r\n    d.setAuthTag(raw.subarray(12, 28)); // è¢«ç¯¡æ¹ä¼å¨è¿éæé\r\n    const out = Buffer.concat([d.update(raw.subarray(28)), d.final()]);\r\n    return JS"
          },
          {
            "col": 34,
            "line": 108,
            "ln": 4558,
            "s": "floor(n / 128); if (n \u003e 0) d |= 0x80; b.push(d); } while (n \u003e 0);\r\n  return Buffer.from(b);\r\n}\r\nconst u16 = (n) =\u003e { const b = Buffer.alloc(2); b.writeUInt16BE(n \u0026 0xffff); return b; };\r\nconst str8 = (s) =\u003e { const v = Buffer.from(s, \"utf8\"); return Buffer.concat([u16(v.length), v]); };\r"
          },
          {
            "col": 18,
            "line": 116,
            "ln": 4995,
            "s": "kets(buf) {\r\n  const out = [];\r\n  let i = 0;\r\n  while (i \u003c buf.length) {\r\n    const start = i;\r\n    let mul = 1, len = 0, byte;\r\n    i++;\r\n    do { if (i \u003e= buf.lengt"
          },
          {
            "col": 42,
            "line": 123,
            "ln": 5175,
            "s": "t, rest: buf.subarray(start) }; byte = buf[i++]; len += (byte \u0026 127) * mul; mul *= 128; } while (byte \u0026 128);\r\n    if (buf.length \u003c i + len) return { out, rest: buf.subarray(start) };\r\n    out.push({ type: buf[start] \u003e\u003e 4, body: buf.subarray(i, i + len) });\r\n    i += len;\r\n  }\r\n  return { out, rest: Buffer.alloc(0) };\r\n}\r\n\r\nclass Mqtt {\r\n  constructor(opts) { Object.assign(this, opts); this.buf = Buffer.alloc(0); this.pid = 1; this.ready = false; this.dead = false; }\r\n  start() {\r\n    const c = tls.connect({ host: this.host, port: this.port, servername: this.host, rejectUnauthorized: false }, () =\u003e {\r\n      this.send(packet(1, 0, Buffer.concat([str8(\"MQTT\"), Buffer.from([4, 0x02]), u16(60), str8(this.clientId)])));\r\n    });\r\n    c.setKeepAlive(true, 30000);\r\n    c.setNoDelay(true);\r\n    c.on(\"data\", (d) =\u003e this.onData(d));\r\n    c.on(\"error\", (e) =\u003e { log(\"[mqtt] è¿æ¥éè¯¯:\", e.message); });\r\n    c.on(\"close\", () =\u003e { this.ready = false; if (!this.dead) { log(\"[mqtt] æ­å¼ï¼3 ç§åéè¿\"); setTimeout(() =\u003e this.start(), 3000); } });\r\n    this.sock = c;\r\n  }\r\n  send(buf) { try { if (this.sock \u0026\u0026 !this.sock.destroyed) this.sock.write(buf); } catch {} }\r\n  onData(d) {\r\n    this.buf = Buffer.concat([this.buf, d]);\r\n    let r;\r\n    try { r = parsePackets(this.buf); "
          },
          {
            "col": 67,
            "line": 148,
            "ln": 6490,
            "s": "alloc(0); return; }\r\n    this.buf = r.rest;\r\n    for (const p of r.out) { try { this.onPacket(p); } catch (e) { log(\"[mqtt] å¤çæ¶æ¯åºéï¼å·²è·³è¿:\", e.message); } }\r\n  }\r\n  onPacket(p) {\r\n    if (p.type === 2) { // CONNACK\r\n      const rc = p.body.length \u003e= 2 ? p.body[1] : 255;\r\n      if (rc !== 0) { log(\"[mqtt] æå¡å¨æç»è¿æ¥, code=\""
          },
          {
            "col": 14,
            "line": 158,
            "ln": 6961,
            "s": "bscribe([T_PRESENCE, ownTopic(this.me.id)]);\r\n      this.ping = setInterval(() =\u003e this.send(Buffer.from([0xc0, 0x00])), 30000);\r\n      this.onReady \u0026\u0026 this.onReady();\r\n      return;\r\n    }\r\n    if (p.type === 3) { // PUBLISH\r\n      const "
          },
          {
            "col": 18,
            "line": 170,
            "ln": 7446,
            "s": "s) {\r\n    const parts = [u16(this.pid++)];\r\n    for (const t of topics) parts.push(str8(t), Buffer.from([0]));\r\n    this.send(packet(8, 2, Buffer.concat(parts)"
          },
          {
            "col": 89,
            "line": 176,
            "ln": 7813,
            "s": "h {} }\r\n}\r\n\r\n/* ---------------- æ¡¥æ¬ä½ ---------------- */\r\nconst me = myIdentity();\r\nconst peers = new Map();   // id -\u003e {id,name,host,sex,level,lastSeen,sock}\r\nconst bindQueue = [];      // ç­å¾ QQPet åè¿ç"
          },
          {
            "col": 16,
            "line": 184,
            "ln": 8075,
            "s": "\r\nlet orphanAt = 0;\r\n\r\nfunction announce(peer) {\r\n  const pkt = JSON.stringify({ t: \"hello\", v: 1, tcp: tcpPort, id: peer.id, name: peer.name, host: peer.host, sex: peer.sex, level: peer.level }) + \"\\n\";\r\n  try { udp.send(Buffer.from(pkt, \"utf8\"), UDP_PORT, \"127.0.0.1\", () =\u003e {}); } catch {}\r\n}\r\n\r\nfunction ensureAnnounced(id) {\r\n  const p = peers.get(id);\r\n  if "
          },
          {
            "col": 50,
            "line": 195,
            "ln": 8512,
            "s": ";\r\n  announce(p);\r\n}\r\n\r\nfunction startServer() {\r\n  const srv = net.createServer((sock) =\u003e {\r\n    sock.on(\"error\", () =\u003e {});\r\n    let id = bindQueue.shift();\r\n    if (!id) {\r\n      // ååºï¼æ¾ä¸ä¸ªè¿æ²¡è¿ä¸çè¿ç«¯\r\n      for (const [k, v] of"
          },
          {
            "col": 52,
            "line": 205,
            "ln": 8789,
            "s": " = k; break; }\r\n    }\r\n    if (!id) { const n = Date.now(); if (n - orphanAt \u003e 60000) { orphanAt = n; log(\"[æ¬å°] æ¶å°æ æ³å½å±çåè¿ï¼å·²ä¸¢å¼\"); } return sock.destroy(); }\r\n    const p = pee"
          },
          {
            "col": 9,
            "line": 211,
            "ln": 9075,
            "s": "\"[æ¬å°] QQPet å·²åè¿å¥½å\", p.name, \"(\" + id.slice(0, 8) + \")\");\r\n    let buf = \"\";\r\n    sock.on(\"data\", (d) =\u003e {\r\n      buf += d.toString(\"utf8\");\r\n      let i;\r\n      while ((i = buf.indexOf(\"\\n\")) \u003e= 0) {\r\n        const line = buf.slice(0, i); buf = buf.slice(i + 1);\r\n        if (!line) continue;\r\n        let pkt; try { pkt = JSON"
          },
          {
            "col": 58,
            "line": 219,
            "ln": 9440,
            "s": "continue; }\r\n        if (pkt.t === \"msg\") {\r\n          log(\"[æ¬å°âå¬ç½]\", p.name, \"æ¶æ¯\", (pkt.body \u0026\u0026 pkt.body.t) || \"?\");\r\n          if (mqtt \u0026\u0026 mqtt.ready) mqtt.publish(ownTopic(id), seal({ fr"
          },
          {
            "col": 53,
            "line": 228,
            "ln": 9837,
            "s": "­å¼\");\r\n    });\r\n    sock.setKeepAlive(true, 20000);\r\n  });\r\n  srv.listen(0, \"127.0.0.1\", () =\u003e {\r\n    tcpPort = srv.address().port;\r\n    log(\"[æ¬å°] æ¡¥æ¥ç«¯å£\", tcpPort, \"Â· ç­å¾ QQPet åè¿\");\r\n  });\r\n  return srv;\r\n}\r\n\r\nfunction startUdp() {\r\n  udp = dgram.createSocket(\"udp4\");\r\n  udp.on(\"error\", (e) =\u003e log(\"[udp]\", e.message));\r\n  udp.bind(0, () =\u003e {\r\n    log(\"[æ¬å°] å°±ç»ªï¼æ¯ 4 ç§å 12"
          },
          {
            "col": 58,
            "line": 243,
            "ln": 10261,
            "s": "_PORT + \" ææå¼\");\r\n    setInterval(() =\u003e { for (const id of peers.keys()) ensureAnnounced(id); }, HELLO_MS);\r\n  });\r\n}\r\n\r\nlet mqtt = null;\r\nfunction startM"
          },
          {
            "col": 4,
            "line": 251,
            "ln": 10454,
            "s": " host: BROKER, port: PORT, clientId: \"qqpet_\" + me.id.replace(/-/g, \"\").slice(0, 16), me,\r\n    onReady: () =\u003e {\r\n      log(\"[å¬ç½] æ¿é´å·²å å¥:\", TOPIC_BASE, \"Â· æçèº«ä»½\", me.name);\r\n      publishPresence();\r\n      setInterval(publishPresence, PRESENCE_MS);\r\n      setInterval(sweep, 5000);\r\n    },\r\n    onMessage: (topic, payload) =\u003e {\r\n      const m = unseal(payload);\r\n      if (!m) return;\r\n      if (topic "
          },
          {
            "col": 4,
            "line": 268,
            "ln": 11260,
            "s": "     } else {\r\n          seen.lastSeen = Date.now();\r\n          seen.name = m.name || seen.name;\r\n          seen.level = Number(m.level || seen.level);\r\n          ensureAnnounced(m.id);\r\n        }\r\n        return;\r\n      }\r"
          },
          {
            "col": 7,
            "line": 282,
            "ln": 11717,
            "s": "    log(\"[å¬ç½âæ¬å°]\", p.name, \"æ¶æ¯\", (m.body \u0026\u0026 m.body.t) || \"?\");\r\n          try { p.sock.write(JSON.stringify({ t: \"msg\", body: m.body }) + \"\\n\"); } catch { p.sock = null; }\r\n        }\r\n      }\r\n    }\r\n  });\r\n  mqtt.start();\r\n}\r\nfunction "
          },
          {
            "col": 111,
            "line": 292,
            "ln": 12135,
            "s": "level }));\r\n}\r\nfunction sweep() {\r\n  const now = Date.now();\r\n  for (const [id, p] of peers) {\r\n    if (now - p.lastSeen \u003c PEER_TIMEOUT) continue;\r\n    log(\"[å¬ç½] å¥½åç¦»å¼:\", p.name);\r\n    if (p.sock) { try { p.sock.destroy(); } catch {} }\r\n    peers.delete(id);\r\n  }\r\n}\r\n\r\n/* ---------------- åå®ä¾ ---------------- */\r\nfunction guardSingle() {\r\n  const old = Number((() =\u003e { try { return fs.readFileSync(PID, \"utf8\"); } catch { return 0; } })());\r\n  if (old) {\r\n    try { process.kill(old, 0); log(\"å·²ææ¡¥æ¥å¨è¿è¡ (pid \" + old + \")ï¼æ¬æ¬¡éåº\"); process.exit(0); } catch {}\r\n  }\r\n  fs.writeFileSync(PID, String(process.pid));\r\n}\r\nprocess.on(\"exit\", () =\u003e { try { if (Number(fs.readFileSync(PID, \"utf8\")) === process.pid) fs.unlinkSync(PID); } catch {} });\r\nprocess.on(\"SIGINT\", () =\u003e process.exit(0));\r\nprocess.on(\"SIGTERM\", () =\u003e process.exit(0));\r\n// ååºï¼ä»»ä½æªæè·å¼å¸¸é½åªè®°æ¥å¿ï¼ä¸è®©æ¡¥æ¥éé»éåº\r\nprocess.on(\"uncaughtException\", (e) =\u003e {\r\n  try { log(\"[å´©æºä¿æ¤] å·²æ¦ä¸å¼å¸¸:\", (e \u0026\u0026 e.message) || String(e)); } catch {}\r\n});\r\nprocess.on(\"unhandledRejection\", (e) =\u003e {\r\n  try { log(\"[å´©æºä¿æ¤] æªå¤çç Promise æç»:\", (e \u0026\u0026 e.message) || String(e)); } ca"
          },
          {
            "col": 33,
            "line": 333,
            "ln": 14013,
            "s": "({ t: \"hello\", v: 1, tcp: port, id: \"doctor-\" + crypto.randomUUID().slice(0, 8), name: \"èªæ£\", host: \"\", sex: \"MM\", level: 1 }) + \"\\n\";\r\n      const fire = () =\u003e probe.send(Buffer.from(pkt), UDP_PORT, \"127.0.0.1\", () =\u003e {});\r\n      fire(); setTimeout(fire, 500); setTimeout(fire, 1500);\r\n      setTimeout(() =\u003e { console.log(\"â QQPet æ²¡æåè¿ï¼è¯·ç¡®è®¤å® ç©å·²å¯å¨ï¼ä¸ è®¾ç½®âç³»ç»è®¾ç½®âå±åç½èæº å·²æå¼\"); process.exit(1); }, 5000);\r\n    });\r\n  });\r\n  const t = tls.connect({ host: BROKER, port: PORT, servername: BROKER, rejectUnauthorized: false }, () =\u003e {\r\n    console.log(\"â å¬ç½ä¸­ç»§å¯è¿:\", BROKER + \":\" + PORT); t.destroy();\r\n  "
          },
          {
            "col": 15,
            "line": 347,
            "ln": 14858,
            "s": " log(\"æªéç½®æ¿é´ç ï¼éåºãè¯·åè¿è¡ è®¾ç½®æ¿é´ç .bat\"); process.exit(0); }\r\n  trimLog();\r\n  guardSingle();\r\n  log(\"=== QQPet å¬ç½æ¿é´æ¡¥å¯å¨ ===\");\r\n  log(\"æ¿é´:\", TOPIC_BA"
          },
          {
            "col": 79,
            "line": 351,
            "ln": 15107,
            "s": "name);\r\n  startServer();\r\n  startUdp();\r\n  startMqtt();\r\n}\r\nif (require.main === module) { if (DOCTOR) doctor(); else main(); }\r\nmodule.exports = { Mqtt, seal, unseal, TOPIC_BASE, ownTopic, ROOM, BROKER, PORT, me };\r\n"
          }
        ],
        "depth": 1,
        "facts": {
          "exp": [
            [
              "BROKER"
            ],
            [
              "Mqtt"
            ],
            [
              "PORT"
            ],
            [
              "ROOM"
            ],
            [
              "TOPIC_BASE"
            ],
            [
              "me"
            ],
            [
              "ownTopic"
            ],
            [
              "seal"
            ],
            [
              "unseal"
            ]
          ],
          "funcs": [
            [
              "log",
              1340
            ],
            [
              "trimLog",
              1539
            ],
            [
              "conf",
              1701
            ],
            [
              "readJSON",
              2149
            ],
            [
              "myIdentity",
              2253
            ],
            [
              "anonymous",
              2501
            ],
            [
              "anonymous",
              3298
            ],
            [
              "seal",
              3494
            ],
            [
              "unseal",
              3872
            ],
            [
              "encLen",
              4486
            ],
            [
              "anonymous",
              4666
            ],
            [
              "anonymous",
              4758
            ],
            [
              "packet",
              4847
            ],
            [
              "parsePackets",
              4978
            ],
            [
              "constructor",
              5517
            ],
            [
              "start",
              5650
            ],
            [
              "anonymous",
              5775
            ],
            [
              "anonymous",
              5986
            ],
            [
              "anonymous",
              6029
            ],
            [
              "anonymous",
              6101
            ],
            [
              "anonymous",
              6197
            ],
            [
              "send",
              6258
            ],
            [
              "onData",
              6353
            ],
            [
              "onPacket",
              6672
            ],
            [
              "anonymous",
              7037
            ],
            [
              "subscribe",
              7431
            ],
            [
              "publish",
              7617
            ],
            [
              "stop",
              7727
            ],
            [
              "announce",
              8098
            ],
            [
              "anonymous",
              8346
            ],
            [
              "ensureAnnounced",
              8374
            ],
            [
              "startServer",
              8536
            ],
            [
              "anonymous",
              8593
            ],
            [
              "anonymous",
              8627
            ],
            [
              "anonymous",
              9186
            ],
            [
              "anonymous",
              9733
            ],
            [
              "anonymous",
              9928
            ],
            [
              "startUdp",
              10069
            ],
            [
              "anonymous",
              10147
            ],
            [
              "anonymous",
              10195
            ],
            [
              "anonymous",
              10301
            ],
            [
              "startMqtt",
              10406
            ],
            [
              "anonymous",
              10558
            ],
            [
              "anonymous",
              10780
            ],
            [
              "publishPresence",
              11958
            ],
            [
              "sweep",
              12150
            ],
            [
              "guardSingle",
              12467
            ],
            [
              "anonymous",
              12515
            ],
            [
              "anonymous",
              12808
            ],
            [
              "anonymous",
              12937
            ],
            [
              "anonymous",
              12984
            ],
            [
              "anonymous",
              13118
            ],
            [
              "anonymous",
              13257
            ],
            [
              "doctor",
              13425
            ],
            [
              "anonymous",
              13749
            ],
            [
              "anonymous",
              13907
            ],
            [
              "anonymous",
              13972
            ],
            [
              "anonymous",
              14171
            ],
            [
              "anonymous",
              14229
            ],
            [
              "anonymous",
              14320
            ],
            [
              "anonymous",
              14595
            ],
            [
              "anonymous",
              14706
            ],
            [
              "main",
              14825
            ]
          ],
          "imp": [
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "process.argv.includes"
            ],
            [
              "",
              "Date.toISOString.slice"
            ],
            [
              "",
              "Date.toISOString"
            ],
            [
              "",
              "Date"
            ],
            [
              "",
              "a.join"
            ],
            [
              "",
              "fs.appendFileSync"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "fs.statSync"
            ],
            [
              "",
              "fs.writeFileSync"
            ],
            [
              "",
              "JSON.parse"
            ],
            [
              "",
              "fs.readFileSync"
            ],
            [
              "",
              "conf"
            ],
            [
              "",
              "String.trim"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "JSON.parse"
            ],
            [
              "",
              "fs.readFileSync"
            ],
            [
              "",
              "readJSON"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "readJSON"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "path.join"
            ],
            [
              "",
              "fs.readFileSync.trim"
            ],
            [
              "",
              "fs.readFileSync"
            ],
            [
              "",
              "crypto.randomUUID"
            ],
            [
              "",
              "fs.writeFileSync"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "crypto.createHash.update.digest"
            ],
            [
              "",
              "crypto.createHash.update"
            ],
            [
              "",
              "crypto.createHash"
            ],
            [
              "",
              "TOPIC_HASH.slice"
            ],
            [
              "",
              "crypto.createHash.update.digest"
            ],
            [
              "",
              "crypto.createHash.update"
            ],
            [
              "",
              "crypto.createHash"
            ],
            [
              "",
              "crypto.randomBytes"
            ],
            [
              "",
              "crypto.createCipheriv"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "c.update"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "JSON.stringify"
            ],
            [
              "",
              "c.final"
            ],
            [
              "",
              "Buffer.concat.toString"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "c.getAuthTag"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "s.startsWith"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "s.slice"
            ],
            [
              "",
              "crypto.createDecipheriv"
            ],
            [
              "",
              "raw.subarray"
            ],
            [
              "",
              "d.setAuthTag"
            ],
            [
              "",
              "raw.subarray"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "d.update"
            ],
            [
              "",
              "raw.subarray"
            ],
            [
              "",
              "d.final"
            ],
            [
              "",
              "JSON.parse"
            ],
            [
              "",
              "out.toString"
            ],
            [
              "",
              "Math.floor"
            ],
            [
              "",
              "b.push"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "Buffer.alloc"
            ],
            [
              "",
              "b.writeUInt16BE"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "u16"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "encLen"
            ],
            [
              "",
              "buf.subarray"
            ],
            [
              "",
              "buf.subarray"
            ],
            [
              "",
              "out.push"
            ],
            [
              "",
              "buf.subarray"
            ],
            [
              "",
              "Buffer.alloc"
            ],
            [
              "",
              "Object.assign"
            ],
            [
              "",
              "Buffer.alloc"
            ],
            [
              "",
              "tls.connect"
            ],
            [
              "",
              "packet"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "str8"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "u16"
            ],
            [
              "",
              "str8"
            ],
            [
              "",
              "c.setKeepAlive"
            ],
            [
              "",
              "c.setNoDelay"
            ],
            [
              "",
              "c.on"
            ],
            [
              "",
              "c.on"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "c.on"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "setTimeout"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "parsePackets"
            ],
            [
              "",
              "Buffer.alloc"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "ownTopic"
            ],
            [
              "",
              "setInterval"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "p.body.readUInt16BE"
            ],
            [
              "",
              "p.body.subarray.toString"
            ],
            [
              "",
              "p.body.subarray"
            ],
            [
              "",
              "p.body.subarray.toString"
            ],
            [
              "",
              "p.body.subarray"
            ],
            [
              "",
              "u16"
            ],
            [
              "",
              "parts.push"
            ],
            [
              "",
              "str8"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "packet"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "packet"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "str8"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "clearInterval"
            ],
            [
              "",
              "myIdentity"
            ],
            [
              "",
              "Map"
            ],
            [
              "",
              "JSON.stringify"
            ],
            [
              "",
              "udp.send"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "peers.get"
            ],
            [
              "",
              "bindQueue.includes"
            ],
            [
              "",
              "bindQueue.push"
            ],
            [
              "",
              "announce"
            ],
            [
              "",
              "net.createServer"
            ],
            [
              "",
              "sock.on"
            ],
            [
              "",
              "bindQueue.shift"
            ],
            [
              "",
              "Date.now"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "sock.destroy"
            ],
            [
              "",
              "peers.get"
            ],
            [
              "",
              "sock.destroy"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "id.slice"
            ],
            [
              "",
              "sock.on"
            ],
            [
              "",
              "d.toString"
            ],
            [
              "",
              "buf.indexOf"
            ],
            [
              "",
              "buf.slice"
            ],
            [
              "",
              "buf.slice"
            ],
            [
              "",
              "JSON.parse"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "mqtt.publish"
            ],
            [
              "",
              "ownTopic"
            ],
            [
              "",
              "seal"
            ],
            [
              "",
              "sock.on"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "sock.setKeepAlive"
            ],
            [
              "",
              "srv.listen"
            ],
            [
              "",
              "srv.address"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "dgram.createSocket"
            ],
            [
              "",
              "udp.on"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "udp.bind"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "setInterval"
            ],
            [
              "",
              "peers.keys"
            ],
            [
              "",
              "ensureAnnounced"
            ],
            [
              "",
              "Mqtt"
            ],
            [
              "",
              "me.id.replace.slice"
            ],
            [
              "",
              "me.id.replace"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "publishPresence"
            ],
            [
              "",
              "setInterval"
            ],
            [
              "",
              "setInterval"
            ],
            [
              "",
              "unseal"
            ],
            [
              "",
              "peers.get"
            ],
            [
              "",
              "peers.set"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "Date.now"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "ensureAnnounced"
            ],
            [
              "",
              "Date.now"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "ensureAnnounced"
            ],
            [
              "",
              "ownTopic"
            ],
            [
              "",
              "peers.get"
            ],
            [
              "",
              "Date.now"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "p.sock.write"
            ],
            [
              "",
              "JSON.stringify"
            ],
            [
              "",
              "mqtt.start"
            ],
            [
              "",
              "mqtt.publish"
            ],
            [
              "",
              "seal"
            ],
            [
              "",
              "Date.now"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "p.sock.destroy"
            ],
            [
              "",
              "peers.delete"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "fs.readFileSync"
            ],
            [
              "",
              "process.kill"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "process.exit"
            ],
            [
              "",
              "fs.writeFileSync"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "process.on"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "fs.readFileSync"
            ],
            [
              "",
              "fs.unlinkSync"
            ],
            [
              "",
              "process.on"
            ],
            [
              "",
              "process.exit"
            ],
            [
              "",
              "process.on"
            ],
            [
              "",
              "process.exit"
            ],
            [
              "",
              "process.on"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "process.on"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "process.exit"
            ],
            [
              "",
              "dgram.createSocket"
            ],
            [
              "",
              "net.createServer"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "s.destroy"
            ],
            [
              "",
              "probe.close"
            ],
            [
              "",
              "srv.close"
            ],
            [
              "",
              "process.exit"
            ],
            [
              "",
              "srv.listen"
            ],
            [
              "",
              "srv.address"
            ],
            [
              "",
              "probe.bind"
            ],
            [
              "",
              "JSON.stringify"
            ],
            [
              "",
              "crypto.randomUUID.slice"
            ],
            [
              "",
              "crypto.randomUUID"
            ],
            [
              "",
              "probe.send"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "fire"
            ],
            [
              "",
              "setTimeout"
            ],
            [
              "",
              "setTimeout"
            ],
            [
              "",
              "setTimeout"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "process.exit"
            ],
            [
              "",
              "tls.connect"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "t.destroy"
            ],
            [
              "",
              "t.on"
            ],
            [
              "",
              "console.log"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "process.exit"
            ],
            [
              "",
              "trimLog"
            ],
            [
              "",
              "guardSingle"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "log"
            ],
            [
              "",
              "startServer"
            ],
            [
              "",
              "startUdp"
            ],
            [
              "",
              "startMqtt"
            ],
            [
              "",
              "doctor"
            ],
            [
              "",
              "main"
            ],
            [
              "",
              "node:crypto"
            ],
            [
              "",
              "node:dgram"
            ],
            [
              "",
              "node:fs"
            ],
            [
              "",
              "node:net"
            ],
            [
              "",
              "node:path"
            ],
            [
              "",
              "node:tls"
            ]
          ],
          "mbr": [
            "Buffer.alloc",
            "Buffer.concat",
            "Buffer.concat.toString",
            "Buffer.from",
            "Date.now",
            "Date.toISOString",
            "Date.toISOString.slice",
            "JSON.parse",
            "JSON.stringify",
            "Math.floor",
            "Object.assign",
            "ROOM.length",
            "String.trim",
            "TOPIC_HASH.slice",
            "a.join",
            "b.push",
            "b.writeUInt16BE",
            "bindQueue.includes",
            "bindQueue.push",
            "bindQueue.shift",
            "body.length",
            "buf.indexOf",
            "buf.length",
            "buf.slice",
            "buf.subarray",
            "c.final",
            "c.getAuthTag",
            "c.level",
            "c.on",
            "c.setKeepAlive",
            "c.setNoDelay",
            "c.update",
            "cfg.broker",
            "cfg.port",
            "cfg.room",
            "console.log",
            "crypto.createCipheriv",
            "crypto.createDecipheriv",
            "crypto.createHash",
            "crypto.createHash.update",
            "crypto.createHash.update.digest",
            "crypto.randomBytes",
            "crypto.randomUUID",
            "crypto.randomUUID.slice",
            "d.final",
            "d.setAuthTag",
            "d.toString",
            "d.update",
            "dgram.createSocket",
            "e.message",
            "fs.appendFileSync",
            "fs.readFileSync",
            "fs.readFileSync.trim",
            "fs.statSync",
            "fs.statSync.size",
            "fs.unlinkSync",
            "fs.writeFileSync",
            "id.slice",
            "idf.id",
            "m.body",
            "m.body.t",
            "m.from",
            "m.host",
            "m.id",
            "m.level",
            "m.name",
            "m.sex",
            "m.to",
            "me.host",
            "me.id",
            "me.id.replace",
            "me.id.replace.slice",
            "me.level",
            "me.name",
            "me.sex",
            "module.exports",
            "mqtt.publish",
            "mqtt.ready",
            "mqtt.start",
            "net.createServer",
            "out.push",
            "out.toString",
            "p.body",
            "p.body.length",
            "p.body.readUInt16BE",
            "p.body.subarray",
            "p.body.subarray.toString",
            "p.host",
            "p.lastSeen",
            "p.name",
            "p.sex",
            "p.sock",
            "p.sock.destroy",
            "p.sock.destroyed",
            "p.sock.write",
            "p.type",
            "parts.push",
            "path.join",
            "peer.host",
            "peer.id",
            "peer.level",
            "peer.name",
            "peer.sex",
            "peers.delete",
            "peers.get",
            "peers.keys",
            "peers.set",
            "pkt.body",
            "pkt.body.t",
            "pkt.t",
            "probe.bind",
            "probe.close",
            "probe.send",
            "process.argv",
            "process.argv.includes",
            "process.env",
            "process.env.APPDATA",
            "process.env.USERPROFILE",
            "process.exit",
            "process.kill",
            "process.on",
            "process.pid",
            "r.out",
            "r.rest",
            "raw.length",
            "raw.subarray",
            "require.main",
            "s.destroy",
            "s.petComputedlInfo",
            "s.petInfo",
            "s.slice",
            "s.startsWith",
            "seen.lastSeen",
            "seen.level",
            "seen.name",
            "sock.destroy",
            "sock.on",
            "sock.setKeepAlive",
            "srv.address",
            "srv.address.port",
            "srv.close",
            "srv.listen",
            "t.destroy",
            "t.on",
            "tls.connect",
            "udp.bind",
            "udp.on",
            "udp.send",
            "v.length",
            "v.sock"
          ],
          "metrics": {
            "ast": {
              "call_count": 277,
              "max_array_length": 4,
              "max_concat_chain": 3,
              "max_depth": 27,
              "max_member_depth": 4,
              "max_numeric_array": 2,
              "member_count": 150,
              "node_count": 6321,
              "op.add": 38,
              "op.band": 3,
              "op.bor": 2,
              "op.div": 1,
              "op.eq": 9,
              "op.ge": 3,
              "op.gt": 4,
              "op.land": 12,
              "op.lnot": 22,
              "op.lor": 26,
              "op.lt": 4,
              "op.mod": 1,
              "op.mul": 3,
              "op.ne": 2,
              "op.shl": 1,
              "op.shr": 1,
              "op.sub": 2,
              "op_density.add": 0.01,
              "op_density.band": 0,
              "op_density.bor": 0,
              "op_density.div": 0,
              "op_density.eq": 0,
              "op_density.ge": 0,
              "op_density.gt": 0,
              "op_density.land": 0,
              "op_density.lnot": 0,
              "op_density.lor": 0,
              "op_density.lt": 0,
              "op_density.mod": 0,
              "op_density.mul": 0,
              "op_density.ne": 0,
              "op_density.shl": 0,
              "op_density.shr": 0,
              "op_density.sub": 0
            },
            "binary": {
              "peak_region_bytes": 5084,
              "peak_region_entropy": 6.19
            },
            "binds": {
              "count": 106
            },
            "comments": {
              "chars": 1605,
              "count": 24,
              "high_entropy": 6,
              "lines": 35,
              "to_code_ratio": 0.11
            },
            "exports": {
              "api_count": 9,
              "count": 9
            },
            "file": {
              "entropy": 5.77,
              "size": 15324
            },
            "functions": {
              "anonymous": 35,
              "avg_length_lines": 6.56,
              "avg_name_length": 7.57,
              "avg_nesting_depth": 0.63,
              "avg_param_name_length": 2.59,
              "avg_params": 0.51,
              "code_ratio": 0.78,
              "count": 29,
              "density": 17.65,
              "length_stddev": 8.9,
              "max_length_lines": 41,
              "max_nesting_depth": 4,
              "max_params": 3,
              "min_length_lines": 1,
              "nested": 15,
              "no_params_count": 35,
              "one_liners": 26,
              "single_char_params": 15
            },
            "identifiers": {
              "all_lowercase_ratio": 0.61,
              "all_uppercase_ratio": 0.1,
              "avg_entropy": 2.13,
              "avg_length": 6.04,
              "base64_like_names": 2,
              "count": 1101,
              "has_digit_ratio": 0.02,
              "high_entropy_count": 4,
              "high_entropy_ratio": 0.02,
              "length_stddev": 3.52,
              "max_length": 18,
              "min_length": 1,
              "numeric_suffix_count": 3,
              "reuse_ratio": 0.2,
              "sequential_names": 15,
              "single_char_count": 15,
              "single_char_ratio": 0.07,
              "underscore_prefix_count": 1,
              "unique": 215
            },
            "imports": {
              "count": 6,
              "stdlib_count": 6,
              "stdlib_ratio": 1
            },
            "source": {
              "class_count": 1,
              "function_count": 28
            },
            "strings": {
              "avg_entropy": 2.45,
              "avg_length": 10.51,
              "bytes": 1493,
              "count": 142,
              "domain_count": 1,
              "empty_count": 8,
              "entropy_stddev": 1.35,
              "high_entropy_count": 1,
              "ip_count": 4,
              "max_length": 105,
              "path_count": 2
            },
            "text": {
              "anonymous_function_ratio": 0.56,
              "ascii_art_lines": 7,
              "avg_line_length": 40.92,
              "char_entropy": 5.77,
              "digit_ratio": 0.04,
              "empty_line_ratio": 0.05,
              "identifier_density": 3.08,
              "identifiers_to_functions_ratio": 3.41,
              "import_density": 1.68,
              "imports_to_functions_ratio": 0.1,
              "last_line_length": 86,
              "line_length_stddev": 36.2,
              "lines": 357,
              "max_line_length": 173,
              "max_whitespace_run": 9,
              "non_ascii_ratio": 0.11,
              "normalized_function_count": 3.33,
              "normalized_import_count": 0.32,
              "normalized_string_count": 7.52,
              "normalized_unique_identifiers": 25.35,
              "repeated_char_sequences": 29,
              "space_count": 2468,
              "string_density": 0.4,
              "strings_to_functions_ratio": 2.25,
              "suspicious_comment_ratio": 0.25,
              "suspicious_identifier_ratio": 0.08,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.04,
              "unique_chars": 161,
              "whitespace_ratio": 0.21
            }
          },
          "tgt": [
            "Buffer.alloc",
            "Buffer.concat",
            "Buffer.concat.toString",
            "Buffer.from",
            "Date",
            "Date.now",
            "Date.toISOString",
            "Date.toISOString.slice",
            "JSON.parse",
            "JSON.stringify",
            "Map",
            "Math.floor",
            "Mqtt",
            "Number",
            "Object.assign",
            "String",
            "String.trim",
            "TOPIC_HASH.slice",
            "a.join",
            "announce",
            "b.push",
            "b.writeUInt16BE",
            "bindQueue.includes",
            "bindQueue.push",
            "bindQueue.shift",
            "buf.indexOf",
            "buf.slice",
            "buf.subarray",
            "c.final",
            "c.getAuthTag",
            "c.on",
            "c.setKeepAlive",
            "c.setNoDelay",
            "c.update",
            "clearInterval",
            "conf",
            "console.log",
            "crypto.createCipheriv",
            "crypto.createDecipheriv",
            "crypto.createHash",
            "crypto.createHash.update",
            "crypto.createHash.update.digest",
            "crypto.randomBytes",
            "crypto.randomUUID",
            "crypto.randomUUID.slice",
            "d.final",
            "d.setAuthTag",
            "d.toString",
            "d.update",
            "dgram.createSocket",
            "doctor",
            "encLen",
            "ensureAnnounced",
            "fire",
            "fs.appendFileSync",
            "fs.readFileSync",
            "fs.readFileSync.trim",
            "fs.statSync",
            "fs.unlinkSync",
            "fs.writeFileSync",
            "guardSingle",
            "id.slice",
            "log",
            "main",
            "me.id.replace",
            "me.id.replace.slice",
            "mqtt.publish",
            "mqtt.start",
            "myIdentity",
            "net.createServer",
            "out.push",
            "out.toString",
            "ownTopic",
            "p.body.readUInt16BE",
            "p.body.subarray",
            "p.body.subarray.toString",
            "p.sock.destroy",
            "p.sock.write",
            "packet",
            "parsePackets",
            "parts.push",
            "path.join",
            "peers.delete",
            "peers.get",
            "peers.keys",
            "peers.set",
            "probe.bind",
            "probe.close",
            "probe.send",
            "process.argv.includes",
            "process.exit",
            "process.kill",
            "process.on",
            "publishPresence",
            "raw.subarray",
            "readJSON",
            "require",
            "s.destroy",
            "s.slice",
            "s.startsWith",
            "seal",
            "setInterval",
            "setTimeout",
            "sock.destroy",
            "sock.on",
            "sock.setKeepAlive",
            "srv.address",
            "srv.close",
            "srv.listen",
            "startMqtt",
            "startServer",
            "startUdp",
            "str8",
            "t.destroy",
            "t.on",
            "tls.connect",
            "trimLog",
            "u16",
            "udp.bind",
            "udp.on",
            "udp.send",
            "unseal"
          ]
        },
        "id": 1,
        "mol": "H₇(Cm₉Cr₈Db₁₁F₁₂Os₆Po₈Ti₃)Md₂(In₅Pt₆)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!bridge.cjs",
        "pid": 0,
        "risk": 33,
        "sha": "c08126d12a20f5cf31c217ccd2d105ed7720dfd8e1a23c8c68685964f18548cc",
        "sid": 6617511523,
        "size": 15324,
        "supp": [
          {
            "by": [
              {
                "id": "micro-behaviors/crypto/encrypt/initialize::createCipheriv",
                "spans": [
                  [
                    3566,
                    21
                  ]
                ]
              }
            ],
            "crit": "notable",
            "id": "micro-behaviors/crypto/encrypt/initialize::node-crypto-create-cipher",
            "kind": "unless"
          }
        ],
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Imports Node net as a namespace",
            "id": "metadata/import/builtin::node-net-namespace-import",
            "spans": [
              [
                585,
                19
              ]
            ]
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "require('crypto') call",
            "id": "metadata/import/builtin::require-crypto",
            "spans": [
              [
                762,
                22
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:crypto",
            "id": "metadata/import/npm/crypto::crypto",
            "spans": [
              [
                770,
                11
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:fs",
            "id": "metadata/import/npm/fs::fs",
            "spans": [
              [
                698,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:net",
            "id": "metadata/import/npm/net::net",
            "spans": [
              [
                593,
                8
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports node:tls",
            "id": "metadata/import/npm/tls::tls",
            "spans": [
              [
                665,
                8
              ]
            ]
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "AES-256-GCM algorithm name",
            "id": "metadata/lang/source/literal/string/cryptography::aes-256-gcm-dash",
            "spans": [
              [
                3589,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Assigns the name property on an object",
            "id": "metadata/lang/source/syntax/assignment/member::object-name-property-assignment",
            "spans": [
              [
                11324,
                31
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Identifier += assignment expression",
            "id": "metadata/lang/source/syntax/assignment/value::js-addition-assignment-identifier",
            "spans": [
              [
                5438,
                8
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Connect call uses object host/port fields",
            "id": "metadata/lang/source/syntax/call/arguments::js-connect-host-port-object-call",
            "spans": [
              [
                5679,
                42
              ],
              [
                14510,
                34
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Calls a digest() method",
            "id": "metadata/lang/source/syntax/call/member::js-digest-method-call",
            "spans": [
              [
                3166,
                8
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Socket-named object write-call text",
            "id": "metadata/lang/source/syntax/call/member::socket-named-write-call-text",
            "spans": [
              [
                6320,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Object literal declares host or user",
            "id": "metadata/lang/source/syntax/identity-field::host-user-object-fields",
            "spans": [
              [
                2829,
                4
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "tls.connect specifies SNI servername",
            "id": "micro-behaviors/communications/http/tls::tls-connect-servername",
            "mbc": "C0005",
            "spans": [
              [
                5675,
                59
              ],
              [
                14506,
                51
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.95,
            "crit": 3,
            "desc": "JavaScript call argument contains loopback IP",
            "id": "micro-behaviors/communications/ip/literal::javascript-loopback-call-argument",
            "spans": [
              [
                8288,
                8
              ],
              [
                9901,
                10
              ],
              [
                14177,
                10
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Binds or listens on the loopback address",
            "id": "micro-behaviors/communications/socket/bind/address::bind-loopback-address",
            "spans": [
              [
                9905,
                21
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Node TLS module connects a socket",
            "id": "micro-behaviors/communications/socket/connect/attempt::node-tls-connect",
            "mbc": "C0001",
            "spans": [
              [
                5675,
                11
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Node datagram module creates a socket",
            "id": "micro-behaviors/communications/socket/create::node-dgram-create-socket",
            "mbc": "C0001",
            "spans": [
              [
                10100,
                18
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Node net module creates a server",
            "id": "micro-behaviors/communications/socket/listen::node-net-create-server",
            "mbc": "C0001",
            "spans": [
              [
                8576,
                16
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Node generic server listens on endpoint",
            "id": "micro-behaviors/communications/socket/listen::node-server-listen-generic",
            "mbc": "C0001",
            "spans": [
              [
                9901,
                10
              ]
            ]
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Node server listens on 127.0.0.1",
            "id": "micro-behaviors/communications/socket/listen::node-server-listens-on-loopback-address",
            "mbc": "C0001",
            "spans": [
              [
                9901,
                10
              ]
            ]
          },
          {
            "atk": "T1071",
            "conf": 0.78,
            "crit": 3,
            "desc": "Node socket data event handler",
            "id": "micro-behaviors/communications/socket/receive::node-socket-data-event",
            "mbc": "C0001",
            "spans": [
              [
                9170,
                7
              ]
            ]
          },
          {
            "atk": "T1071",
            "conf": 0.92,
            "crit": 3,
            "desc": "Node socket writes JSON payload",
            "id": "micro-behaviors/communications/socket/send/content::node-socket-json-write",
            "mbc": "C0001",
            "spans": [
              [
                11813,
                26
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node TLS verification disabled by option",
            "id": "micro-behaviors/communications/tls/verify/disable::reject-unauthorized-false",
            "spans": [
              [
                5746,
                25
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "setAuthTag with buffer slice text",
            "id": "micro-behaviors/crypto/cipher/authentication::auth-tag-sliced-from-buffer",
            "mbc": "C0027",
            "spans": [
              [
                4186,
                24
              ]
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Retrieves a cipher encryption authentication tag",
            "id": "micro-behaviors/crypto/cipher/authentication::node-cipher-get-auth-tag",
            "spans": [
              [
                3827,
                12
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls a setAuthTag method",
            "id": "micro-behaviors/crypto/cipher/authentication::set-auth-tag",
            "spans": [
              [
                4184,
                12
              ]
            ]
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Creates AES-GCM decipher",
            "id": "micro-behaviors/crypto/cipher/mode::node-aes-gcm-decipher-call",
            "spans": [
              [
                4120,
                30
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Initialize Node.js decrypting cipher with IV",
            "id": "micro-behaviors/crypto/decrypt/initialize::createDecipheriv",
            "spans": [
              [
                4113,
                23
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Initializes a Node AES-GCM decipher",
            "id": "micro-behaviors/crypto/decrypt/initialize::node-aes-gcm-decipher-initialization",
            "spans": [
              [
                4120,
                29
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Initialize Node.js encrypting cipher with IV",
            "id": "micro-behaviors/crypto/encrypt/initialize::createCipheriv",
            "spans": [
              [
                3566,
                21
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "IV and authentication-tag concatenation",
            "id": "micro-behaviors/crypto/encrypt/transform::iv-auth-tag-concat",
            "spans": [
              [
                3808,
                33
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Node.js createHash('sha256') call",
            "id": "micro-behaviors/crypto/hash/digest/sha2::node-createhash-sha256-call",
            "spans": [
              [
                3109,
                17
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "Node.js createHash call",
            "id": "micro-behaviors/crypto/hash/digest/unnamed-algorithm::node-createhash-call",
            "spans": [
              [
                3109,
                27
              ],
              [
                3116,
                10
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "AES algorithm string prefix",
            "id": "micro-behaviors/crypto/symmetric/aes/reference::aes-algorithm",
            "spans": [
              [
                3589,
                4
              ]
            ]
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "Spaced subtraction between identifiers",
            "id": "micro-behaviors/data/arithmetic::js-identifier-subtraction",
            "spans": [
              [
                8853,
                12
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Creates Node.js Buffer from UTF-8 text",
            "id": "micro-behaviors/data/buffer/alloc::buffer-from-utf8",
            "spans": [
              [
                3651,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node builds Buffer from integer list",
            "id": "micro-behaviors/data/buffer/alloc::js-buffer-from-int-list",
            "spans": [
              [
                5842,
                15
              ],
              [
                7053,
                18
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Creates Node.js Buffer from JSON serialization",
            "id": "micro-behaviors/data/buffer/alloc::node-buffer-from-json-stringify",
            "spans": [
              [
                3651,
                27
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Writes 16-bit big-endian buffer value",
            "id": "micro-behaviors/data/buffer/integer-codec::uint16-be-buffer-write",
            "spans": [
              [
                4703,
                15
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Writes a buffer argument to a stream",
            "id": "micro-behaviors/data/buffer/transfer::stream-write-buffer-arg",
            "spans": [
              [
                6324,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JavaScript empty catch block",
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::empty-catch-block",
            "spans": [
              [
                1508,
                2
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JavaScript emitter discards errors",
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::silent-error-handler",
            "spans": [
              [
                8614,
                22
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "For loop contains a try block",
            "id": "micro-behaviors/data/control-flow/error-handling/try::js-for-with-try",
            "spans": [
              [
                12199,
                151
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Top-level method call on require result",
            "id": "micro-behaviors/data/control-flow/module-exec::module-level-imported-method-call",
            "spans": [
              [
                827,
                9
              ],
              [
                3109,
                17
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Module scope assigns zero-argument call",
            "id": "micro-behaviors/data/control-flow/module-exec::module-scope-zero-arg-call",
            "spans": [
              [
                1805,
                19
              ],
              [
                7877,
                24
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls a delete method with an argument",
            "id": "micro-behaviors/data/control-flow/sequence::delete-method-call",
            "spans": [
              [
                12392,
                10
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Base64 decoding via Buffer.from (JS)",
            "id": "micro-behaviors/data/decode/base64/call::buffer-from-base64",
            "spans": [
              [
                4024,
                11
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Base64 encoding via toString (JS)",
            "id": "micro-behaviors/data/encode/base64/primitive::tostring-base64",
            "spans": [
              [
                3808,
                22
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "JSON.parse call, dotted or computed member",
            "id": "micro-behaviors/data/parse/json::js-json-parse-direct-or-computed",
            "spans": [
              [
                1735,
                11
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Calls JSON.stringify()",
            "id": "micro-behaviors/data/serialize/json::json-stringify-call",
            "spans": [
              [
                3663,
                14
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Serializes an identifier as JSON",
            "id": "micro-behaviors/data/serialize/json::json-stringify-identifier",
            "spans": [
              [
                3663,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes value with JSON.stringify",
            "id": "micro-behaviors/data/serialize/json::json-stringify-text-call",
            "spans": [
              [
                3663,
                16
              ],
              [
                8139,
                16
              ]
            ]
          },
          {
            "atk": "T1070.004",
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls synchronous Node unlink method",
            "id": "micro-behaviors/fs/delete/file/library::fs-unlinkSync",
            "mbc": "C0047",
            "spans": [
              [
                12880,
                13
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls file remove, unlink, or DeleteFile",
            "id": "micro-behaviors/fs/delete/path::script-file-unlink-call",
            "spans": [
              [
                12880,
                13
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node synchronously reads file metadata",
            "id": "micro-behaviors/fs/file/stat::node-stat-sync-call",
            "spans": [
              [
                1573,
                11
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Node empty file write uses default mode",
            "id": "micro-behaviors/fs/file/truncate::node-empty-write-default-mode",
            "spans": [
              [
                1609,
                25
              ],
              [
                1612,
                13
              ],
              [
                1631,
                2
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "JavaScript references the AppData directory",
            "id": "micro-behaviors/fs/path/app-data/platform::javascript-appdata-directory-reference",
            "spans": [
              [
                2066,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Literal ending in .bat or .cmd",
            "id": "micro-behaviors/fs/path/extension::batch-command-extension-literal",
            "spans": [
              [
                14922,
                4
              ]
            ]
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "References script directory path",
            "id": "micro-behaviors/fs/path/self::script-dirname-ref",
            "spans": [
              [
                802,
                9
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Windows user-profile folder path reference",
            "id": "micro-behaviors/fs/path/user-directory::windows-user-folder-path-reference",
            "spans": [
              [
                2045,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Reads files with Node.js",
            "id": "micro-behaviors/fs/read/file/content/whole::read-node",
            "spans": [
              [
                1746,
                15
              ]
            ],
            "uses": [
              62,
              63
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Calls readFile on bound Node fs module",
            "id": "micro-behaviors/fs/read/file/content/whole::read-node-module-bound",
            "spans": [
              [
                1746,
                15
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls fs.readFile or readFile",
            "id": "micro-behaviors/fs/read/file/content/whole::read-node-symbol",
            "spans": [
              [
                1746,
                15
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls readFileSync",
            "id": "micro-behaviors/fs/read/file/content/whole::readfilesync-call",
            "spans": [
              [
                1746,
                15
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node file read near resource path",
            "id": "micro-behaviors/fs/read/file/target::node-file-read-near-resource-path",
            "spans": [
              [
                1746,
                15
              ],
              [
                2066,
                7
              ]
            ],
            "uses": [
              57,
              61
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node fs appends to a file synchronously",
            "id": "micro-behaviors/fs/write/file/append::append-file-sync",
            "spans": [
              [
                1461,
                17
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "writeFileSync target built by path.join",
            "id": "micro-behaviors/fs/write/file/full/call::node-write-file-sync-join-path",
            "spans": [
              [
                1609,
                16
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node fs writes to a file synchronously",
            "id": "micro-behaviors/fs/write/file/full/call::write-file-sync",
            "spans": [
              [
                1609,
                16
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Node fs writeSync or writeFileSync call",
            "id": "micro-behaviors/fs/write/file/reference::js-fs-write-sync",
            "spans": [
              [
                1609,
                16
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "writeFileSync member reference",
            "id": "micro-behaviors/fs/write/file/reference::node-write-file-sync",
            "spans": [
              [
                1609,
                16
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "writeFileSync call name",
            "id": "micro-behaviors/fs/write/file/reference::node-write-file-sync-call",
            "spans": [
              [
                1609,
                16
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Logs a single identifier with console.log",
            "id": "micro-behaviors/os/console/io::js-console-log-identifier",
            "spans": [
              [
                1516,
                17
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References Node APPDATA environment member",
            "id": "micro-behaviors/os/env/path::node-appdata-access",
            "spans": [
              [
                2000,
                19
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "USERPROFILE path environment variable",
            "id": "micro-behaviors/os/env/path::userprofile-var",
            "spans": [
              [
                2045,
                11
              ]
            ]
          },
          {
            "atk": "T1059.007",
            "conf": 0.95,
            "crit": 3,
            "desc": "Sets ELECTRON_RUN_AS_NODE in child env",
            "id": "micro-behaviors/os/env/runtime::electron-run-as-node-env-injection",
            "spans": [
              [
                421,
                20
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Electron runtime environment variable reference",
            "id": "micro-behaviors/os/env/runtime::electron-runtime-variable-reference",
            "spans": [
              [
                421,
                20
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Binds Node filesystem module as fs",
            "id": "micro-behaviors/os/module/require::node-fs-const-binding",
            "spans": [
              [
                685,
                2
              ],
              [
                690,
                7
              ],
              [
                699,
                7
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the Node.js randomBytes API",
            "id": "micro-behaviors/os/random/crypto::node-random-bytes",
            "spans": [
              [
                3529,
                18
              ]
            ]
          },
          {
            "conf": 0.72,
            "crit": 3,
            "desc": "Generates UUID with Web Crypto",
            "id": "micro-behaviors/os/random/crypto::webcrypto-random-uuid",
            "spans": [
              [
                2653,
                17
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Node CLI handles SIGINT",
            "id": "micro-behaviors/os/signal::node-sigint-handler",
            "spans": [
              [
                12916,
                19
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Script runs when executed as main",
            "id": "micro-behaviors/process/argument/lifecycle::node-require-main-module-guard",
            "mbc": "B0024",
            "spans": [
              [
                15171,
                23
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Sends or probes a Node process signal",
            "id": "micro-behaviors/process/control/signal::node-process-kill-call",
            "spans": [
              [
                12620,
                12
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Probes process existence with signal zero",
            "id": "micro-behaviors/process/control/signal::node-process-liveness-probe",
            "spans": [
              [
                12620,
                12
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Node process exit hook registered",
            "id": "micro-behaviors/process/exit/handler::js-process-on-exit-hook",
            "spans": [
              [
                12789,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node explicitly exits with status zero",
            "id": "micro-behaviors/process/exit/terminate::node-explicit-success-exit",
            "spans": [
              [
                12705,
                15
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Terminates Node.js process via process.exit",
            "id": "micro-behaviors/process/exit/terminate::node-process-exit-call",
            "spans": [
              [
                12705,
                12
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Reads Node.js arguments through process.argv",
            "id": "micro-behaviors/process/info/commandline::check-argv",
            "spans": [
              [
                1254,
                12
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Reads Node.js current process ID",
            "id": "micro-behaviors/process/info/current::node-process-pid-access",
            "spans": [
              [
                12770,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node process uncaughtException handler",
            "id": "micro-behaviors/process/lifecycle/error::process-on-uncaught-exception",
            "spans": [
              [
                13086,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Node process unhandledRejection handler",
            "id": "micro-behaviors/process/lifecycle/error::process-on-unhandled-rejection",
            "spans": [
              [
                13224,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References PID file or background process ID",
            "id": "micro-behaviors/process/pid::node-pidfile-reference",
            "spans": [
              [
                888,
                12
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Named setTimeout callback with numeric delay",
            "id": "micro-behaviors/time/schedule/delay::named-timeout-callback",
            "spans": [
              [
                14278,
                22
              ]
            ]
          },
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "setTimeout two to nine second delay",
            "id": "micro-behaviors/time/schedule/delay::settimeout-callback-short-delay",
            "spans": [
              [
                6186,
                36
              ],
              [
                6217,
                4
              ],
              [
                14309,
                167
              ],
              [
                14470,
                4
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Repeated interval timer",
            "id": "micro-behaviors/time/schedule/interval::interval-call-text",
            "spans": [
              [
                7025,
                12
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Schedules a repeated callback with setInterval()",
            "id": "micro-behaviors/time/schedule/interval::setInterval",
            "spans": [
              [
                7025,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Schedules a named timer callback",
            "id": "micro-behaviors/time/schedule/timeout::named-callback-timer",
            "spans": [
              [
                10680,
                28
              ],
              [
                10730,
                18
              ],
              [
                14255,
                16
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Schedules a JavaScript callback with setTimeout",
            "id": "micro-behaviors/time/schedule/timeout::setTimeout",
            "spans": [
              [
                6186,
                10
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports node:dgram",
            "id": "metadata/import/npm/dgram::dgram",
            "spans": [
              [
                629,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports node:path",
            "id": "metadata/import/npm/path::path",
            "spans": [
              [
                732,
                0
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Body member-name reference",
            "id": "metadata/lang/source/syntax/member::message-body-member-name",
            "spans": [
              [
                9539,
                0
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Type member-name reference",
            "id": "metadata/lang/source/syntax/member::message-type-member-name",
            "spans": [
              [
                6695,
                0
              ]
            ]
          }
        ],
        "type": "javascript"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "{\n  \"room\": \"d3whbbzct3dndy6y368n\",\n  \"broker\": \"broker.emqx.io\",\n  \"port\": 8883\n}\n"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 83,
              "peak_region_entropy": 4.46
            },
            "file": {
              "entropy": 4.46,
              "size": 83
            },
            "json": {
              "parse_limit_bytes": 76800,
              "parsed_bytes": 83
            }
          }
        },
        "id": 2,
        "mol": "H(Cm)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!config.json",
        "pid": 0,
        "risk": 1,
        "sha": "67263bf77b7201af9b716ebc565b8377e085cae6d814d2c6b59d33dd8ea8a99c",
        "sid": 6617511520,
        "size": 83,
        "traits": [
          {
            "atk": "T1071",
            "conf": 0.85,
            "crit": 3,
            "desc": "HTTP request with custom port (4+ digits)",
            "id": "micro-behaviors/communications/url/host/port-http::http-custom-port-number",
            "spans": [
              [
                68,
                4
              ]
            ]
          }
        ],
        "type": "json"
      },
      {
        "ctx": [
          {
            "ln": 0,
            "s": "@echo off\r\nsetlocal\r\ncd /d \"%~dp0\"\r\nif not exist \"bridge.pid\" (\r\n  echo Ã»ÓÐ¼ì²âµ½ÕýÔÚÔËÐÐµÄÇÅ½Ó½ø³Ì¡£\r\n  pause\r\n  exit /b 0\r\n)\r\nset /p PID=\u003cbridge.pid\r\necho ÕýÔÚ½áÊøÇÅ½Ó½ø³Ì PID=%PID% ...\r\ntaskkill /PID %PID% /F\r\ndel /q \"bridge.pid\" 2\u003enul\r\necho Íê³É¡£\r\npause\r\n"
          }
        ],
        "depth": 1,
        "facts": {
          "imp": [
            [
              "",
              "cd"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "pause"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "taskkill"
            ],
            [
              "",
              "del"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "pause"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 8,
              "max_depth": 5,
              "node_count": 58
            },
            "binary": {
              "peak_region_bytes": 261,
              "peak_region_entropy": 5.48
            },
            "file": {
              "entropy": 5.48,
              "size": 261
            },
            "identifiers": {
              "all_lowercase_ratio": 0.71,
              "all_uppercase_ratio": 0.14,
              "avg_entropy": 1.84,
              "avg_length": 4.29,
              "count": 11,
              "length_stddev": 1.83,
              "max_length": 8,
              "min_length": 2,
              "reuse_ratio": 0.64,
              "unique": 7
            },
            "source": {
              "batch.seeded_snapshot_concat_loops": 0,
              "batch.snapshot_concat_max_fanout": 0,
              "batch.unbounded_snapshot_concat_loops": 0,
              "batch.unconditional_start_cycles": 0,
              "invalid_utf8_bytes": 29
            },
            "strings": {
              "avg_entropy": 2.72,
              "avg_length": 8.33,
              "bytes": 25,
              "count": 3,
              "entropy_stddev": 0.28,
              "max_length": 10
            },
            "text": {
              "avg_line_length": 16.64,
              "char_entropy": 5.06,
              "digit_ratio": 0.02,
              "identifier_density": 0.79,
              "last_line_length": 5,
              "line_length_stddev": 10.92,
              "lines": 14,
              "max_line_length": 37,
              "max_whitespace_run": 1,
              "non_ascii_ratio": 0.09,
              "normalized_string_count": 0.8,
              "normalized_unique_identifiers": 1.84,
              "space_count": 28,
              "string_density": 0.21,
              "top_char": 95,
              "top_char_null": 0,
              "top_char_ratio": 0.11,
              "unique_chars": 54,
              "whitespace_ratio": 0.21
            }
          },
          "tgt": [
            "cd",
            "del",
            "echo",
            "pause",
            "taskkill"
          ]
        },
        "id": 3,
        "mol": "H₂(F₂Po)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!停止联机.bat",
        "pid": 0,
        "risk": 3,
        "sha": "65de8bbc1b8d423b7df82c531780d62f93e274e7c9a502719c6e433b88818f15",
        "sid": 6617511519,
        "size": 261,
        "traits": [
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Batch contains DEL or ERASE calls",
            "id": "micro-behaviors/fs/delete/file/command::batch-del-call",
            "spans": [
              [
                214,
                3
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Batch DEL with force or quiet switch",
            "id": "micro-behaviors/fs/delete/file/command::batch-del-force-quiet-switch",
            "spans": [
              [
                214,
                6
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Reads file line into batch variable",
            "id": "micro-behaviors/fs/read/file/partial::batch-set-p-file-line",
            "spans": [
              [
                129,
                22
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Parsed taskkill command invocation",
            "id": "micro-behaviors/process/terminate/command::taskkill-command-call",
            "spans": [
              [
                190,
                8
              ]
            ]
          },
          {
            "conf": 0.78,
            "crit": 3,
            "desc": "taskkill PID argument",
            "id": "micro-behaviors/process/terminate/command::taskkill-pid-argument",
            "spans": [
              [
                199,
                4
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "taskkill terminates by PID",
            "id": "micro-behaviors/process/terminate/command::taskkill-pid-command",
            "spans": [
              [
                189,
                10
              ],
              [
                199,
                4
              ]
            ],
            "uses": [
              4,
              6
            ]
          },
          {
            "conf": 0.72,
            "crit": 3,
            "desc": "taskkill command token",
            "id": "micro-behaviors/process/terminate/command::taskkill-token",
            "spans": [
              [
                189,
                10
              ]
            ]
          }
        ],
        "type": "batch"
      },
      {
        "ctx": [
          {
            "ln": 0,
            "s": "@echo off\r\nsetlocal enabledelayedexpansion\r\ncd /d \"%~dp0\"\r\ntitle QQ³èÎï Áª»úÆô¶¯\r\n\r\nif not exist \"..\\QQPet.exe\" (\r\n  echo [X] Ã»ÕÒµ½ ..\\QQPet.exe\r\n  echo     Çë°ÑÕû¸ö relay-bridge ÎÄ¼þ¼Ð·Åµ½ QQPet.exe ËùÔÚÄ"
          },
          {
            "ln": 431,
            "s": "exist \"bridge.pid\" set /p BPID=\u003cbridge.pid\r\nif defined BPID (\r\n  tasklist /fi \"PID eq !BPID!\" 2\u003enul | findstr /i \"QQPet.exe\" \u003enul \u0026\u0026 goto :startpet\r\n)\r\n\r\nrem ---- Òþ²ØÆô¶¯ÇÅ½Ó£º²»´´½¨ÈÎºÎ¿É¼û´°¿Ú ----\r\npowershell -NoProfile -WindowStyle Hidden -Command \"$env:ELECTRON_RUN_AS_NODE='1'; Start-Process -FilePath '%~dp0..\\QQPet.exe' -ArgumentList 'bridge.cjs' -WorkingDirectory '%~dp0' -WindowStyle Hidden\"\r\n\r\n\r\n:startpet\r\nrem ---- À­Æð³èÎï£¨³èÎï´°¿ÚÕý³£ÏÔÊ¾£©----\r\nstart \"\" \"..\\QQPet.exe\"\r\nexit\r\n"
          }
        ],
        "depth": 1,
        "facts": {
          "imp": [
            [
              "",
              "cd"
            ],
            [
              "",
              "title"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "pause"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "pause"
            ],
            [
              "",
              "tasklist"
            ],
            [
              "",
              "findstr"
            ],
            [
              "",
              "goto"
            ],
            [
              "",
              "powershell"
            ],
            [
              "",
              "start"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 15,
              "max_depth": 8,
              "node_count": 125
            },
            "binary": {
              "peak_region_bytes": 924,
              "peak_region_entropy": 5.89
            },
            "comments": {
              "chars": 113,
              "count": 3,
              "lines": 3,
              "to_code_ratio": 0.09
            },
            "file": {
              "entropy": 5.89,
              "size": 924
            },
            "identifiers": {
              "all_lowercase_ratio": 0.82,
              "all_uppercase_ratio": 0.09,
              "avg_entropy": 2.11,
              "avg_length": 5.36,
              "count": 17,
              "length_stddev": 2.1,
              "max_length": 10,
              "min_length": 2,
              "reuse_ratio": 0.65,
              "unique": 11
            },
            "source": {
              "batch.seeded_snapshot_concat_loops": 0,
              "batch.snapshot_concat_max_fanout": 0,
              "batch.unbounded_snapshot_concat_loops": 0,
              "batch.unconditional_start_cycles": 0,
              "invalid_utf8_bytes": 104
            },
            "strings": {
              "avg_entropy": 3.03,
              "avg_length": 24.33,
              "bytes": 219,
              "count": 9,
              "empty_count": 1,
              "entropy_stddev": 0.9,
              "high_entropy_count": 1,
              "max_length": 147
            },
            "text": {
              "avg_line_length": 24.4,
              "char_entropy": 5.32,
              "digit_ratio": 0.02,
              "empty_line_ratio": 0.14,
              "identifier_density": 0.49,
              "last_line_length": 4,
              "line_length_stddev": 35.88,
              "lines": 35,
              "max_line_length": 200,
              "max_whitespace_run": 5,
              "non_ascii_ratio": 0.05,
              "normalized_string_count": 1.52,
              "normalized_unique_identifiers": 2.14,
              "space_count": 106,
              "string_density": 0.26,
              "top_char": 95,
              "top_char_null": 0,
              "top_char_ratio": 0.12,
              "unique_chars": 103,
              "whitespace_ratio": 0.19
            }
          },
          "tgt": [
            "cd",
            "echo",
            "echo.",
            "findstr",
            "goto",
            "pause",
            "powershell",
            "start",
            "tasklist",
            "title"
          ]
        },
        "id": 4,
        "mol": "H₄(DbFOs₂Po₁₀)Md(Pt)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!启动联机.bat",
        "pid": 0,
        "risk": 10,
        "sha": "827823bda0435c368bff17c28530c594a0327767684ed24024119cf5ac26b828",
        "sid": 6617511521,
        "size": 924,
        "traits": [
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Batch START command site",
            "id": "metadata/lang/source/syntax/command/control::batch-start-command-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "START command specifies an empty window title",
            "id": "metadata/lang/source/syntax/command/control::start-empty-window-title",
            "spans": [
              [
                893,
                8
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "id": "micro-behaviors/data/format/script::embedded-batch-delayed-expansion",
            "spans": [
              [
                11,
                31
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "PowerShell executable name or command options",
            "id": "micro-behaviors/fs/path/application/interpreter::powershell-executable-token",
            "spans": [
              [
                633,
                13
              ]
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Batch sets a console title",
            "id": "micro-behaviors/os/console/control::batch-console-title-command"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Batch command redirects stdout to NUL",
            "id": "micro-behaviors/os/console/io::batch-command-stdout-nul",
            "spans": [
              [
                556,
                1
              ],
              [
                557,
                3
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "PowerShell -Command or -c option text",
            "id": "micro-behaviors/process/argument/interpreter::powershell-c-flag",
            "spans": [
              [
                633,
                50
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "PowerShell command-option and prefix clues",
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-launch",
            "spans": [
              [
                633,
                50
              ]
            ],
            "uses": [
              6,
              9
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell command text with options",
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-options-text",
            "spans": [
              [
                631,
                15
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell argument or operator prefix",
            "id": "micro-behaviors/process/argument/interpreter::powershell-option-or-operator-prefix",
            "spans": [
              [
                633,
                12
              ]
            ]
          },
          {
            "atk": "T1564.003",
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell WindowStyle Hidden option",
            "id": "micro-behaviors/process/argument/interpreter::powershell-windowstyle-hidden-option",
            "spans": [
              [
                654,
                20
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "PowerShell disables profile loading",
            "id": "micro-behaviors/process/argument/lifecycle::powershell-no-profile-flag",
            "spans": [
              [
                633,
                21
              ]
            ]
          },
          {
            "atk": "T1059.001",
            "conf": 0.96,
            "crit": 3,
            "desc": "PowerShell execution or window option",
            "id": "micro-behaviors/process/argument/option::powershell-execution-or-window-option",
            "spans": [
              [
                633,
                41
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell command line carries a flag",
            "id": "micro-behaviors/process/argument/option::powershell-flagged-command-line",
            "spans": [
              [
                632,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Windows interpreter command has an option",
            "id": "micro-behaviors/process/argument/option::windows-interpreter-option-syntax",
            "spans": [
              [
                632,
                14
              ]
            ]
          },
          {
            "atk": "T1059.001",
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell command text requests a hidden window",
            "id": "micro-behaviors/process/argument/visibility::powershell-hidden-command-text",
            "spans": [
              [
                633,
                41
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Start-Process FilePath command text",
            "id": "micro-behaviors/process/create/cmdlet::start-process-filepath-text",
            "spans": [
              [
                716,
                23
              ]
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Start-Process requests a hidden window",
            "id": "micro-behaviors/process/create/hidden::start-process-hidden-window-option",
            "spans": [
              [
                716,
                116
              ]
            ]
          },
          {
            "atk": "T1564.003",
            "conf": 0.9,
            "crit": 3,
            "desc": "Start-Process hidden window flag",
            "id": "micro-behaviors/process/create/hidden::start-process-windowstyle-hidden",
            "spans": [
              [
                716,
                116
              ]
            ]
          },
          {
            "atk": "T1059.003",
            "conf": 0.92,
            "crit": 3,
            "desc": "START command names a quoted executable",
            "id": "micro-behaviors/process/create/path-execution::start-quoted-executable-command",
            "spans": [
              [
                893,
                23
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Embedded PowerShell -Command text",
            "id": "micro-behaviors/process/deploy/interpreter-command::powershell-command-text",
            "spans": [
              [
                633,
                50
              ]
            ]
          },
          {
            "atk": "T1057",
            "conf": 0.6,
            "crit": 3,
            "desc": "References the Windows tasklist command",
            "id": "micro-behaviors/process/enumerate/shell::tasklist",
            "spans": [
              [
                495,
                12
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "id": "micro-behaviors/process/interpreter/scripting::delayed-expansion",
            "spans": [
              [
                20,
                22
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Filters a process-list result",
            "id": "micro-behaviors/process/lifecycle/supervise::watchdog-process-filter",
            "spans": [
              [
                496,
                44
              ]
            ]
          }
        ],
        "type": "batch"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited"
        ],
        "ctx": [
          {
            "ln": 0,
            "s": "@echo off\r\nchcp 936 \u003enul 2\u003e\u00261\r\nsetlocal enabledelayedexpansion\r\ncd /d \"%~dp0\"\r\ntitle QQ³èÎï Áª»ú×Ô¼ì\r\n\r\nset /a BAD=0\r\nset /a TIP=0\r\n\r\necho ============================================\r\necho "
          },
          {
            "ln": 310,
            "s": "em ========== 1. Ä¿Â¼²ã¼¶ ==========\r\nif exist \"..\\QQPet.exe\" (\r\n  echo [OK] 1. Ä¿Â¼²ã¼¶    relay-bridge Óë QQPet.exe Í¬¼¶\r\n) else (\r\n  echo [X ] 1. Ä¿Â¼²ã¼"
          },
          {
            "ln": 830,
            "s": "+=1\r\n)\r\n\r\nrem ========== 2. ÎÄ¼þÍêÕûÐÔ ==========\r\nset \"MISS=\"\r\nfor %%f in (bridge.cjs config.json \"Æô¶¯Áª»ú.bat\" \"Í£Ö¹Áª»ú.bat\") do (\r\n  if not exist \"%%~f\" set \"MISS=!MISS! %%~f\"\r\n)\r\nif defined MISS (\r\n"
          },
          {
            "ln": 1256,
            "s": "\r\nif exist \"config.json\" (\r\n  for /f \"usebackq delims=\" %%a in (`powershell -NoProfile -Command \"$c=ConvertFrom-Json ([IO.File]::ReadAllText('config.json')); Write-Output ($c.room+'#'+$c.broker+'#'+$c.port)\" 2^\u003enul`) do set \"CFG=%%a\"\r\n)\r\nset \"ROOM=\"\r\nset \"BROKER=\"\r\nset \"PORT=\"\r\nif defined CFG (\r\n  for /f \"tokens=1,2,3 delims=#\" %%a in (\"!CFG!\") do (\r\n    set \"ROOM=%%a\"\r\n    set \"BROKER=%%b\"\r\n    set \"PORT=%%c\"\r\n  )\r\n)\r\nif not defined ROOM (\r"
          },
          {
            "ln": 2035,
            "s": "P+=1\r\n  )\r\n)\r\n\r\nrem ========== 4. ³èÎï´æµµ ==========\r\nif exist \"%APPDATA%\\QQPet\\save.json\" (\r\n  echo [OK] 4. ³èÎï´æµµ    ÒÑÕÒµ½\r\n) else (\r\n  echo [X ] 4. ³èÎï´æµµ    ÕÒ²»µ½£¬ËµÃ÷ QQPet »¹Ã»Æô¶¯¹ý\r\n  ech"
          },
          {
            "ln": 2331,
            "s": "¾ÖÓòÍøÁª»ú¿ª¹Ø ==========\r\nif exist \"%APPDATA%\\QQPet\\save.json\" (\r\n  powershell -NoProfile -Command \"$s=Get-Content -Raw '%APPDATA%\\QQPet\\save.json'; if($s -match 'lan.{0,3}:\\s*true'){exit 0}else{exit 1}\" \u003enul 2\u003e\u00261\r\n  if errorlevel 1 (\r\n    echo [X ] 5. Áª»ú¿ª¹Ø    Î´¿ªÆô£¬ÕâÊÇ×î³£¼ûµÄÔ­Òò\r\n    echo        ÓÒ¼ü³èÎï -^\u003e ÉèÖÃ°ïÖú -^\u003e ÏµÍ³ÉèÖÃ -^\u003e ´ò¿ª¡¸¾ÖÓòÍøÁª»ú¡¹\r\n    set /a BAD+=1\r\n  ) else (\r\n    echo [OK] 5. Áª»ú¿ª¹Ø    ÒÑ¿ªÆô\r\n  )\r\n) else (\r\n  echo [--] 5. Áª»ú¿ª¹Ø  "
          },
          {
            "ln": 3168,
            "s": "¹½Ø¡£ÓÃ¼ÇÊÂ±¾´ò¿ª config.json£¬\r\n    echo        °Ñ broker ¸Ä³É broker.hivemq.com£¨¶Ë¿Ú±£³Ö 8883£©£¬±£´æÖØÊÔ\r\n    set /a BAD+=1\r\n  ) else (\r\n    echo [OK] 6. ÖÐ¼ÌÁ¬Í¨    !BROKER!:!PORT! ¿ÉÁ¬½Ó\r\n  )\r\n) else (\r\n"
          },
          {
            "ln": 3496,
            "s": "e.pid\" set /p BPID=\u003cbridge.pid\r\nset \"RUN=\"\r\nif defined BPID (\r\n  tasklist /fi \"PID eq !BPID!\" 2\u003enul | findstr /i \"QQPet.exe\" \u003enul \u0026\u0026 set \"RUN=1\"\r\n)\r\nif defined RUN (\r\n  echo [OK] 7. ÇÅ½Ó½ø³Ì    ÕýÔÚÔËÐÐ£¨PID !BPID!£©\r\n) else (\r\n  echo [-"
          },
          {
            "ln": 3954,
            "s": "ª»ú¡£\r\n  echo  Ë«·½¶¼Æô¶¯¡¸Æô¶¯Áª»ú.bat¡¹ºó£¬5-10 ÃëÄÚ³èÎï»áº°\r\n  echo  ¡¸Ö÷ÈË~ XXX³öÀ´ÍæÀ²~~¡¹£¬È»ºóÓÒ¼ü³èÎï -^\u003e Ò»ÆðÍæË£¡£\r\n) else (\r\n  echo  ½áÂÛ£ºÓÐ !BAD! ÏîÐèÒª´¦Àí£¬¼ûÉÏÃæ±ê [X ] µÄµØ·½¡£\r\n  echo  °Ñ±¾´°¿Ú½ØÍ¼·¢¸ø¶Ô·½£¬ÄÜ¿ìËÙ¶¨Î»ÎÊÌâ¡£\r"
          }
        ],
        "depth": 1,
        "facts": {
          "imp": [
            [
              "",
              "chcp"
            ],
            [
              "",
              "cd"
            ],
            [
              "",
              "title"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "powershell"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "powershell"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "tasklist"
            ],
            [
              "",
              "findstr"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "pause"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 53,
              "max_depth": 8,
              "node_count": 692
            },
            "binary": {
              "peak_region_bytes": 4096,
              "peak_region_entropy": 5.97
            },
            "comments": {
              "chars": 275,
              "count": 9,
              "lines": 9,
              "to_code_ratio": 0.07
            },
            "file": {
              "entropy": 6.12,
              "size": 4328
            },
            "identifiers": {
              "all_lowercase_ratio": 0.28,
              "all_uppercase_ratio": 0.24,
              "avg_entropy": 1.86,
              "avg_length": 4.9,
              "count": 86,
              "length_stddev": 1.75,
              "max_length": 10,
              "min_length": 2,
              "reuse_ratio": 0.34,
              "unique": 29
            },
            "source": {
              "batch.seeded_snapshot_concat_loops": 0,
              "batch.snapshot_concat_max_fanout": 0,
              "batch.unbounded_snapshot_concat_loops": 0,
              "batch.unconditional_start_cycles": 0,
              "invalid_utf8_bytes": 775
            },
            "strings": {
              "avg_entropy": 3.2,
              "avg_length": 26.64,
              "bytes": 373,
              "count": 14,
              "entropy_stddev": 1.04,
              "high_entropy_count": 2,
              "max_length": 113
            },
            "text": {
              "ascii_art_lines": 9,
              "avg_line_length": 28.7,
              "char_entropy": 5.2,
              "digit_ratio": 0.05,
              "empty_line_ratio": 0.08,
              "identifier_density": 0.61,
              "last_line_length": 5,
              "line_length_stddev": 30.42,
              "lines": 141,
              "lines_over_200": 1,
              "max_line_length": 205,
              "max_whitespace_run": 8,
              "non_ascii_ratio": 0.08,
              "normalized_string_count": 1.18,
              "normalized_unique_identifiers": 4.06,
              "repeated_char_sequences": 34,
              "space_count": 660,
              "string_density": 0.1,
              "top_char": 95,
              "top_char_null": 0,
              "top_char_ratio": 0.18,
              "unique_chars": 145,
              "whitespace_ratio": 0.22
            }
          },
          "tgt": [
            "cd",
            "chcp",
            "echo",
            "echo.",
            "findstr",
            "pause",
            "powershell",
            "tasklist",
            "title"
          ]
        },
        "id": 5,
        "mol": "H₅(CmDb₂F₅Os₃Po₆)Md₂(Pt)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!自检.bat",
        "pid": 0,
        "risk": 14,
        "sha": "f145b84d2d3859a7376d99a1001b54723e0331c80e6db9a87041da121be0d44a",
        "sid": 6617511525,
        "size": 4328,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch contains a long token",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "metadata/file/line::batch-has-long-token"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "PowerShell cmdlet names in embedded text",
            "id": "metadata/lang/source/naming/action/token::powershell-cmdlet-text",
            "spans": [
              [
                2431,
                11
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "HiveMQ broker endpoint",
            "id": "micro-behaviors/communications/messaging/mqtt::hivemq-broker-endpoint",
            "spans": [
              [
                3232,
                17
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Batch FOR-in loop syntax",
            "id": "micro-behaviors/data/control-flow/loop/collection::batch-for-in-loop",
            "spans": [
              [
                894,
                12
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "id": "micro-behaviors/data/format/script::embedded-batch-delayed-expansion",
            "spans": [
              [
                31,
                31
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Literal references AppData directory path",
            "id": "micro-behaviors/fs/path/app-data/platform::appdata-root-path-literal",
            "spans": [
              [
                2099,
                10
              ]
            ]
          },
          {
            "conf": 0.82,
            "crit": 3,
            "desc": "Windows AppData directory path reference",
            "id": "micro-behaviors/fs/path/app-data/platform::windows-appdata-directory-path",
            "spans": [
              [
                2100,
                10
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "PowerShell executable name or command options",
            "id": "micro-behaviors/fs/path/application/interpreter::powershell-executable-token",
            "spans": [
              [
                1321,
                13
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": ".NET reads text file",
            "id": "micro-behaviors/fs/read/file/content/whole::read-all-text",
            "spans": [
              [
                1374,
                22
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "File content write capability",
            "from": [
              {
                "file": 8,
                "off": 3107
              }
            ],
            "id": "micro-behaviors/fs/write/content::file-write-capability",
            "uses": [
              10,
              11
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Batch ECHO redirects content to file",
            "id": "micro-behaviors/fs/write/file/redirect::batch-echo-redirect",
            "spans": [
              [
                2623,
                55
              ],
              [
                4018,
                50
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "ECHO file output or REGEDIT-header output",
            "from": [
              {
                "file": 8,
                "off": 3107
              }
            ],
            "id": "micro-behaviors/fs/write/file/redirect::echo-file-output-or-regedit-header",
            "uses": [
              10
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Batch sets a console title",
            "id": "micro-behaviors/os/console/control::batch-console-title-command"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "chcp command token reference",
            "id": "micro-behaviors/os/console/control::chcp-command-token-reference",
            "spans": [
              [
                10,
                6
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Batch command redirects stdout to NUL",
            "id": "micro-behaviors/os/console/io::batch-command-stdout-nul",
            "spans": [
              [
                20,
                1
              ],
              [
                21,
                3
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "AppData environment lookup",
            "id": "micro-behaviors/os/env/path::appdata-path-lookup",
            "spans": [
              [
                2100,
                9
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "PowerShell -Command or -c option text",
            "id": "micro-behaviors/process/argument/interpreter::powershell-c-flag",
            "spans": [
              [
                1321,
                30
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "PowerShell command-option and prefix clues",
            "from": [
              {
                "file": 8,
                "off": 1584
              }
            ],
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-launch",
            "uses": [
              16,
              19
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell command text with options",
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-options-text",
            "spans": [
              [
                2395,
                18
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell argument or operator prefix",
            "id": "micro-behaviors/process/argument/interpreter::powershell-option-or-operator-prefix",
            "spans": [
              [
                1321,
                12
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "PowerShell disables profile loading",
            "id": "micro-behaviors/process/argument/lifecycle::powershell-no-profile-flag",
            "spans": [
              [
                1321,
                21
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell command line carries a flag",
            "id": "micro-behaviors/process/argument/option::powershell-flagged-command-line",
            "spans": [
              [
                1320,
                14
              ],
              [
                2399,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Windows interpreter command has an option",
            "id": "micro-behaviors/process/argument/option::windows-interpreter-option-syntax",
            "spans": [
              [
                1320,
                14
              ],
              [
                2399,
                14
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Embedded PowerShell -Command text",
            "id": "micro-behaviors/process/deploy/interpreter-command::powershell-command-text",
            "spans": [
              [
                1321,
                30
              ]
            ]
          },
          {
            "atk": "T1057",
            "conf": 0.6,
            "crit": 3,
            "desc": "References the Windows tasklist command",
            "id": "micro-behaviors/process/enumerate/shell::tasklist",
            "spans": [
              [
                3560,
                12
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "id": "micro-behaviors/process/interpreter/scripting::delayed-expansion",
            "spans": [
              [
                40,
                22
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Filters a process-list result",
            "id": "micro-behaviors/process/lifecycle/supervise::watchdog-process-filter",
            "spans": [
              [
                3561,
                44
              ]
            ]
          }
        ],
        "type": "batch"
      },
      {
        "ctx": [
          {
            "ln": 0,
            "s": "@echo off\r\nsetlocal\r\ncd /d \"%~dp0\"\r\n\r\necho ============================================\r\necho  ÉèÖÃ·¿¼äÂë"
          },
          {
            "ln": 377,
            "s": "M%\"==\"\" goto done\r\n\r\nrem Ð£Ñé£ºÖ»ÔÊÐí×ÖÄ¸ºÍÊý×Ö£¬±ÜÃâÐ´»µ JSON\r\necho %ROOM%| findstr /r \"^[0-9A-Za-z][0-9A-Za-z]*$\" \u003enul\r\nif errorlevel 1 (\r\n  echo.\r\n  echo [X] ·¿¼äÂëÖ»ÄÜ°üº¬×ÖÄ¸ºÍÊý×Ö£¬ÒÑÈ¡Ïû£¬Î´±£´æ¡£\r\n  goto done\r\n)\r\n\r\nrem Èý¸ö×Ö¶ÎÒ»ÆðÐ´£¬±ÜÃâ°"
          },
          {
            "ln": 913,
            "s": "£»\r\necho   2) ÖØ¿ªÒ»´Î¡¸Æô¶¯Áª»ú.bat¡¹²Å»áÉúÐ§¡£\r\n\r\n:done\r\necho.\r\npause\r\n"
          }
        ],
        "depth": 1,
        "facts": {
          "imp": [
            [
              "",
              "cd"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "type"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "findstr"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "type"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "pause"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 30,
              "max_depth": 5,
              "node_count": 179
            },
            "binary": {
              "peak_region_bytes": 986,
              "peak_region_entropy": 5.93
            },
            "comments": {
              "chars": 76,
              "count": 2,
              "lines": 2,
              "to_code_ratio": 0.04
            },
            "file": {
              "entropy": 5.93,
              "size": 986
            },
            "identifiers": {
              "all_lowercase_ratio": 0.63,
              "all_uppercase_ratio": 0.13,
              "avg_entropy": 1.98,
              "avg_length": 4.63,
              "count": 33,
              "length_stddev": 1.41,
              "max_length": 7,
              "min_length": 2,
              "reuse_ratio": 0.24,
              "unique": 8
            },
            "source": {
              "batch.seeded_snapshot_concat_loops": 0,
              "batch.snapshot_concat_max_fanout": 0,
              "batch.unbounded_snapshot_concat_loops": 0,
              "batch.unconditional_start_cycles": 0,
              "invalid_utf8_bytes": 191
            },
            "strings": {
              "avg_entropy": 2.32,
              "avg_length": 7.78,
              "bytes": 70,
              "count": 9,
              "domain_count": 1,
              "empty_count": 1,
              "entropy_stddev": 0.62,
              "max_length": 25
            },
            "text": {
              "ascii_art_lines": 2,
              "avg_line_length": 18.98,
              "char_entropy": 5.01,
              "digit_ratio": 0.04,
              "empty_line_ratio": 0.15,
              "identifier_density": 0.7,
              "last_line_length": 5,
              "line_length_stddev": 17.12,
              "lines": 47,
              "max_line_length": 56,
              "max_whitespace_run": 3,
              "non_ascii_ratio": 0.1,
              "normalized_string_count": 1.31,
              "normalized_unique_identifiers": 1.44,
              "repeated_char_sequences": 2,
              "space_count": 72,
              "string_density": 0.19,
              "top_char": 95,
              "top_char_null": 0,
              "top_char_ratio": 0.19,
              "unique_chars": 103,
              "whitespace_ratio": 0.17
            }
          },
          "tgt": [
            "cd",
            "echo",
            "echo.",
            "findstr",
            "pause",
            "type"
          ]
        },
        "id": 6,
        "mol": "H₂(F₂Os)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!设置房间码.bat",
        "pid": 0,
        "risk": 2,
        "sha": "b8a074c455ea31c5a08b166b8dc5d9b3df15715f40c541dab2b577af3ce90b93",
        "sid": 6617511522,
        "size": 986,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "File content write capability",
            "from": [
              {
                "file": 7,
                "off": 567
              }
            ],
            "id": "micro-behaviors/fs/write/content::file-write-capability",
            "uses": [
              1,
              2
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Batch ECHO redirects content to file",
            "id": "micro-behaviors/fs/write/file/redirect::batch-echo-redirect",
            "spans": [
              [
                441,
                53
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "ECHO file output or REGEDIT-header output",
            "from": [
              {
                "file": 7,
                "off": 567
              }
            ],
            "id": "micro-behaviors/fs/write/file/redirect::echo-file-output-or-regedit-header",
            "uses": [
              1
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Batch command redirects stdout to NUL",
            "id": "micro-behaviors/os/console/io::batch-command-stdout-nul",
            "spans": [
              [
                493,
                1
              ],
              [
                494,
                3
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch ECHO variable command text",
            "id": "micro-behaviors/os/console/io::batch-echo-variable-command-text",
            "spans": [
              [
                441,
                11
              ]
            ]
          }
        ],
        "type": "batch"
      },
      {
        "ctx": [
          {
            "ln": 0,
            "s": "@echo off\nsetlocal\ncd /d \"%~dp0\"\n\necho ============================================\necho  ÃÃ¨ÃÃÂ·Â¿Â¼Ã"
          },
          {
            "ln": 503,
            "s": "Ã©Â£ÂºÃÂ»ÃÃÃÃ­ÃÃÃÂ¸ÂºÃÃÃ½ÃÃÂ£Â¬Â±ÃÃÃ¢ÃÂ´Â»Âµ JSON\necho | findstr /r \"[0-9A-Za-z][0-9A-Za-z]*$\" \u003enul\nif errorlevel 1 (\n  echo.\n  echo [X] Â·Â¿Â¼Ã¤ÃÃ«ÃÂ»ÃÃÂ°Ã¼ÂºÂ¬ÃÃÃÂ¸ÂºÃÃÃ½ÃÃÂ£Â¬ÃÃÃÂ¡ÃÃ»Â£Â¬ÃÂ´Â±Â£Â´Ã¦Â¡Â£\n  got"
          },
          {
            "ln": 1132,
            "s": "Â¿ÂªÃÂ»Â´ÃÂ¡Â¸ÃÃ´Â¶Â¯ÃÂªÂ»Ãº.batÂ¡Â¹Â²ÃÂ»Ã¡ÃÃºÃÂ§Â¡Â£\n\n:done\necho.\npause\n\n"
          }
        ],
        "depth": 2,
        "facts": {
          "imp": [
            [
              "",
              "cd"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "type"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "findstr"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "type"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "pause"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 30,
              "max_depth": 5,
              "node_count": 177
            },
            "binary": {
              "peak_region_bytes": 1024,
              "peak_region_entropy": 5.42
            },
            "comments": {
              "chars": 134,
              "count": 2,
              "lines": 2,
              "to_code_ratio": 0.04
            },
            "file": {
              "entropy": 5.44,
              "size": 1213
            },
            "identifiers": {
              "all_lowercase_ratio": 0.71,
              "all_uppercase_ratio": 0.14,
              "avg_entropy": 1.99,
              "avg_length": 4.43,
              "count": 32,
              "length_stddev": 1.4,
              "max_length": 7,
              "min_length": 2,
              "reuse_ratio": 0.22,
              "unique": 7
            },
            "source": {
              "batch.seeded_snapshot_concat_loops": 0,
              "batch.snapshot_concat_max_fanout": 0,
              "batch.unbounded_snapshot_concat_loops": 0,
              "batch.unconditional_start_cycles": 0
            },
            "strings": {
              "avg_entropy": 2.43,
              "avg_length": 6.33,
              "bytes": 57,
              "count": 9,
              "domain_count": 1,
              "empty_count": 3,
              "entropy_stddev": 0.64,
              "max_length": 24
            },
            "text": {
              "ascii_art_lines": 2,
              "avg_line_length": 24.27,
              "char_entropy": 5.44,
              "digit_ratio": 0.04,
              "empty_line_ratio": 0.17,
              "identifier_density": 0.67,
              "last_line_length": 5,
              "line_length_stddev": 25.42,
              "lines": 48,
              "max_line_length": 95,
              "max_whitespace_run": 3,
              "non_ascii_ratio": 0.48,
              "normalized_string_count": 1.3,
              "normalized_unique_identifiers": 1.25,
              "repeated_char_sequences": 2,
              "space_count": 72,
              "string_density": 0.19,
              "top_char": 195,
              "top_char_null": 0,
              "top_char_ratio": 0.13,
              "unique_chars": 119,
              "whitespace_ratio": 0.1
            }
          },
          "tgt": [
            "cd",
            "echo",
            "echo.",
            "findstr",
            "pause",
            "type"
          ]
        },
        "id": 7,
        "mol": "H₂(F₂Os)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!设置房间码.bat!!##batch-expansion@0",
        "pid": 6,
        "risk": 2,
        "sha": "d86812a7bb18588a98316eab6cc723e8a8e08035290b6ed4a17d1a2fd1d36c6d",
        "sid": 6617511524,
        "size": 1213,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "File content write capability",
            "id": "micro-behaviors/fs/write/content::file-write-capability",
            "spans": [
              [
                567,
                46
              ]
            ],
            "uses": [
              1,
              2
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Batch ECHO redirects content to file",
            "id": "micro-behaviors/fs/write/file/redirect::batch-echo-redirect",
            "spans": [
              [
                567,
                46
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "ECHO file output or REGEDIT-header output",
            "id": "micro-behaviors/fs/write/file/redirect::echo-file-output-or-regedit-header",
            "spans": [
              [
                567,
                46
              ]
            ],
            "uses": [
              1
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Batch command redirects stdout to NUL",
            "id": "micro-behaviors/os/console/io::batch-command-stdout-nul",
            "spans": [
              [
                612,
                1
              ],
              [
                613,
                3
              ]
            ]
          }
        ],
        "type": "batch"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited"
        ],
        "ctx": [
          {
            "ln": 0,
            "s": "@echo off\nchcp 936 \u003enul 2\u003e\u00261\nsetlocal enabledelayedexpansion\ncd /d \"%~dp0\"\ntitle QQÂ³Ã¨ÃÃ¯ ÃÂªÂ»ÃºÃÃÂ¼Ã¬\n\nset /a BAD=0\nset /a TIP=0\n\necho ============================================\ne"
          },
          {
            "ln": 345,
            "s": "====== 1. ÃÂ¿ÃÂ¼Â²Ã£Â¼Â¶ ==========\nif exist \"..\\QQPet.exe\" (\n  echo [OK] 1. ÃÂ¿ÃÂ¼Â²Ã£Â¼Â¶    relay-bridge ÃÃ« QQPet.exe ÃÂ¬Â¼Â¶\n) else (\n  echo [X ]"
          },
          {
            "ln": 1021,
            "s": "\n\nrem ========== 2. ÃÃÂ¼Ã¾ÃÃªÃÃ»ÃÃ ==========\nset \"MISS=\"\nfor %%f in (bridge.cjs config.json \"ÃÃ´Â¶Â¯ÃÂªÂ»Ãº.bat\" \"ÃÂ£ÃÂ¹ÃÂªÂ»Ãº.bat\") do (\n  if not exist \"%%~f\" set \"MISS= %%~f\"\n)\nif defined M"
          },
          {
            "ln": 1519,
            "s": "=\"\nif exist \"config.json\" (\n  for /f \"usebackq delims=\" %%a in (`powershell -NoProfile -Command \"$c=ConvertFrom-Json ([IO.File]::ReadAllText('config.json')); Write-Output ($c.room+'#'+$c.broker+'#'+$c.port)\" 2\u003enul`) do set \"CFG=%%a\"\n)\nset \"ROOM=\"\nset \"BROKER=\"\nset \"PORT=\"\nif defined CFG (\n  for /f \"tokens=1,"
          },
          {
            "ln": 2406,
            "s": "1\n  )\n)\n\nrem ========== 4. Â³Ã¨ÃÃ¯Â´Ã¦ÂµÂµ ==========\nif exist \"%APPDATA%\\QQPet\\save.json\" (\n  echo [OK] 4. Â³Ã¨ÃÃ¯Â´Ã¦ÂµÂµ    ÃÃÃÃÂµÂ½\n) else (\n  echo [X ] 4. Â³Ã¨ÃÃ¯Â´Ã¦ÂµÂµ    ÃÃÂ²Â»ÂµÂ½Â£Â¬Ã"
          },
          {
            "ln": 2787,
            "s": "ÂªÂ»ÃºÂ¿ÂªÂ¹Ã ==========\nif exist \"%APPDATA%\\QQPet\\save.json\" (\n  powershell -NoProfile -Command \"$s=Get-Content -Raw '%APPDATA%\\QQPet\\save.json'; if($s -match 'lan.{0,3}:\\s*true'){exit 0}else{exit 1}\" \u003enul 2\u003e\u00261\n  if errorlevel 1 (\n    echo [X ] 5. ÃÂªÂ»ÃºÂ¿ÂªÂ¹Ã    ÃÂ´Â¿ÂªÃÃ´Â£Â¬ÃÃ¢ÃÃÃÃ®Â³Â£Â¼Ã»ÂµÃÃÂ­ÃÃ²\n    echo        ÃÃÂ¼Ã¼Â³Ã¨ÃÃ¯ -\u003e ÃÃ¨ÃÃÂ°Ã¯ÃÃº -\u003e ÃÂµÃÂ³ÃÃ¨ÃÃ -\u003e Â´Ã²Â¿ÂªÂ¡Â¸Â¾ÃÃÃ²ÃÃ¸ÃÂªÂ»ÃºÂ¡Â¹\n    set /a BAD+=1\n  ) else (\n    echo [OK] 5. ÃÂªÂ»ÃºÂ¿ÂªÂ¹Ã    ÃÃÂ¿ÂªÃÃ´\n  )\n) else ("
          },
          {
            "ln": 3772,
            "s": "Â¾Â´Ã²Â¿Âª config.jsonÂ£Â¬\n    echo        Â°Ã broker Â¸ÃÂ³Ã broker.hivemq.comÂ£Â¨Â¶ÃÂ¿ÃÂ±Â£Â³Ã 8883Â£Â©Â£Â¬Â±Â£Â´Ã¦ÃÃÃÃ\n    set /a BAD+=1\n  ) else (\n    echo [OK] 6. ÃÃÂ¼ÃÃÂ¬ÃÂ¨    %%b:%%c Â¿Ã"
          },
          {
            "ln": 4148,
            "s": "idge.pid\" set /p BPID=\u003cbridge.pid\nset \"RUN=\"\nif defined BPID (\n  tasklist /fi \"PID eq \" 2\u003enul | findstr /i \"QQPet.exe\" \u003enul \u0026\u0026 set \"RUN=1\"\n)\nif defined RUN (\n  echo [OK] 7. ÃÃÂ½ÃÂ½Ã¸Â³Ã    ÃÃ½ÃÃÃÃÃÃÂ£Â¨PID Â£Â©\n) else (\n"
          },
          {
            "ln": 4717,
            "s": "Â¸ÃÃ´Â¶Â¯ÃÂªÂ»Ãº.batÂ¡Â¹ÂºÃ³Â£Â¬5-10 ÃÃ«ÃÃÂ³Ã¨ÃÃ¯Â»Ã¡ÂºÂ°\n  echo  Â¡Â¸ÃÃ·ÃÃ~ XXXÂ³Ã¶ÃÂ´ÃÃ¦ÃÂ²~~Â¡Â¹Â£Â¬ÃÂ»ÂºÃ³ÃÃÂ¼Ã¼Â³Ã¨ÃÃ¯ -\u003e ÃÂ»ÃÃ°ÃÃ¦ÃÂ£Â¡Â£\n) else (\n  echo  Â½Ã¡ÃÃÂ£ÂºÃÃ !BAD! ÃÃ®ÃÃ¨ÃÂªÂ´Â¦ÃÃ­Â£Â¬Â¼Ã»ÃÃÃÃ¦Â±Ãª [X ] ÂµÃÂµÃÂ·Â½Â¡Â£\n  ec"
          }
        ],
        "depth": 2,
        "facts": {
          "imp": [
            [
              "",
              "chcp"
            ],
            [
              "",
              "cd"
            ],
            [
              "",
              "title"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "powershell"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "powershell"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "tasklist"
            ],
            [
              "",
              "findstr"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo"
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "echo."
            ],
            [
              "",
              "pause"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 53,
              "max_depth": 8,
              "node_count": 691
            },
            "binary": {
              "peak_region_bytes": 5120,
              "peak_region_entropy": 5.57
            },
            "comments": {
              "chars": 353,
              "count": 9,
              "lines": 9,
              "to_code_ratio": 0.07
            },
            "file": {
              "entropy": 5.66,
              "size": 5224
            },
            "identifiers": {
              "all_lowercase_ratio": 0.35,
              "all_uppercase_ratio": 0.3,
              "avg_entropy": 1.8,
              "avg_length": 4.57,
              "count": 82,
              "length_stddev": 1.77,
              "max_length": 10,
              "min_length": 2,
              "reuse_ratio": 0.28,
              "unique": 23
            },
            "source": {
              "batch.seeded_snapshot_concat_loops": 0,
              "batch.snapshot_concat_max_fanout": 0,
              "batch.unbounded_snapshot_concat_loops": 0,
              "batch.unconditional_start_cycles": 0
            },
            "strings": {
              "avg_entropy": 3.08,
              "avg_length": 25.43,
              "bytes": 356,
              "count": 14,
              "entropy_stddev": 1.14,
              "high_entropy_count": 1,
              "max_length": 105
            },
            "text": {
              "ascii_art_lines": 4,
              "avg_line_length": 35.79,
              "char_entropy": 5.66,
              "digit_ratio": 0.05,
              "empty_line_ratio": 0.08,
              "identifier_density": 0.58,
              "last_line_length": 5,
              "line_length_stddev": 38.05,
              "lines": 142,
              "lines_over_200": 1,
              "long_token_count": 1,
              "max_line_length": 204,
              "max_whitespace_run": 8,
              "non_ascii_ratio": 0.42,
              "normalized_string_count": 1.17,
              "normalized_unique_identifiers": 3.22,
              "repeated_char_sequences": 20,
              "space_count": 660,
              "string_density": 0.1,
              "top_char": 195,
              "top_char_null": 0,
              "top_char_ratio": 0.11,
              "unique_chars": 150,
              "whitespace_ratio": 0.15
            }
          },
          "tgt": [
            "cd",
            "chcp",
            "echo",
            "echo.",
            "findstr",
            "pause",
            "powershell",
            "tasklist",
            "title"
          ]
        },
        "id": 8,
        "mol": "H₅(CmDb₂F₅Os₃Po₆)Md₂(Pt)",
        "path": "36febbaaee18944359bad74a574204089838cc3642ab410d6a237da2fd4ccc2c!!自检.bat!!##batch-expansion@0",
        "pid": 5,
        "risk": 14,
        "sha": "631450e3480a87c1329010baab699d36efb6314efea45ab1dcbce20a4810358b",
        "sid": 6617511518,
        "size": 5224,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch contains a long token",
            "id": "metadata/file/line::batch-has-long-token"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "PowerShell cmdlet names in embedded text",
            "id": "metadata/lang/source/naming/action/token::powershell-cmdlet-text",
            "spans": [
              [
                2890,
                11
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "HiveMQ broker endpoint",
            "id": "micro-behaviors/communications/messaging/mqtt::hivemq-broker-endpoint",
            "spans": [
              [
                3836,
                17
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Batch FOR-in loop syntax",
            "id": "micro-behaviors/data/control-flow/loop/collection::batch-for-in-loop",
            "spans": [
              [
                1085,
                12
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "id": "micro-behaviors/data/format/script::embedded-batch-delayed-expansion",
            "spans": [
              [
                29,
                31
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Literal references AppData directory path",
            "id": "micro-behaviors/fs/path/app-data/platform::appdata-root-path-literal",
            "spans": [
              [
                2470,
                10
              ],
              [
                2471,
                10
              ]
            ]
          },
          {
            "conf": 0.82,
            "crit": 3,
            "desc": "Windows AppData directory path reference",
            "id": "micro-behaviors/fs/path/app-data/platform::windows-appdata-directory-path",
            "spans": [
              [
                2471,
                10
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "PowerShell executable name or command options",
            "id": "micro-behaviors/fs/path/application/interpreter::powershell-executable-token",
            "spans": [
              [
                1584,
                13
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": ".NET reads text file",
            "id": "micro-behaviors/fs/read/file/content/whole::read-all-text",
            "spans": [
              [
                1637,
                22
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "File content write capability",
            "id": "micro-behaviors/fs/write/content::file-write-capability",
            "spans": [
              [
                3107,
                76
              ],
              [
                4781,
                79
              ]
            ],
            "uses": [
              10,
              11
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Batch ECHO redirects content to file",
            "id": "micro-behaviors/fs/write/file/redirect::batch-echo-redirect",
            "spans": [
              [
                3107,
                76
              ],
              [
                4781,
                79
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "ECHO file output or REGEDIT-header output",
            "id": "micro-behaviors/fs/write/file/redirect::echo-file-output-or-regedit-header",
            "spans": [
              [
                3107,
                76
              ],
              [
                4781,
                79
              ]
            ],
            "uses": [
              10
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Batch sets a console title",
            "id": "micro-behaviors/os/console/control::batch-console-title-command"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "chcp command token reference",
            "id": "micro-behaviors/os/console/control::chcp-command-token-reference",
            "spans": [
              [
                9,
                6
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Batch command redirects stdout to NUL",
            "id": "micro-behaviors/os/console/io::batch-command-stdout-nul",
            "spans": [
              [
                19,
                1
              ],
              [
                20,
                3
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "AppData environment lookup",
            "id": "micro-behaviors/os/env/path::appdata-path-lookup",
            "spans": [
              [
                2471,
                9
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "PowerShell -Command or -c option text",
            "id": "micro-behaviors/process/argument/interpreter::powershell-c-flag",
            "spans": [
              [
                1584,
                30
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "PowerShell command-option and prefix clues",
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-launch",
            "spans": [
              [
                1584,
                30
              ]
            ],
            "uses": [
              16,
              19
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell command text with options",
            "id": "micro-behaviors/process/argument/interpreter::powershell-command-options-text",
            "spans": [
              [
                2851,
                17
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "PowerShell argument or operator prefix",
            "id": "micro-behaviors/process/argument/interpreter::powershell-option-or-operator-prefix",
            "spans": [
              [
                1584,
                12
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "PowerShell disables profile loading",
            "id": "micro-behaviors/process/argument/lifecycle::powershell-no-profile-flag",
            "spans": [
              [
                1584,
                21
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PowerShell command line carries a flag",
            "id": "micro-behaviors/process/argument/option::powershell-flagged-command-line",
            "spans": [
              [
                1583,
                14
              ],
              [
                2854,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Windows interpreter command has an option",
            "id": "micro-behaviors/process/argument/option::windows-interpreter-option-syntax",
            "spans": [
              [
                1583,
                14
              ],
              [
                2854,
                14
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Embedded PowerShell -Command text",
            "id": "micro-behaviors/process/deploy/interpreter-command::powershell-command-text",
            "spans": [
              [
                1584,
                30
              ]
            ]
          },
          {
            "atk": "T1057",
            "conf": 0.6,
            "crit": 3,
            "desc": "References the Windows tasklist command",
            "id": "micro-behaviors/process/enumerate/shell::tasklist",
            "spans": [
              [
                4212,
                12
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Batch delayed variable expansion enabled",
            "id": "micro-behaviors/process/interpreter/scripting::delayed-expansion",
            "spans": [
              [
                38,
                22
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Filters a process-list result",
            "id": "micro-behaviors/process/lifecycle/supervise::watchdog-process-filter",
            "spans": [
              [
                4213,
                38
              ]
            ]
          }
        ],
        "type": "batch"
      }
    ],
    "v": 8
  }
}