{
  "ml": {
    "analyzed_at": "2026-11-19T12:48:49Z",
    "files": [
      {
        "lvl": -1,
        "prob": 0.10950112,
        "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": -1,
        "id": 9
      },
      {
        "lvl": -1,
        "id": 10
      },
      {
        "lvl": -1,
        "id": 11
      },
      {
        "lvl": -1,
        "id": 12
      },
      {
        "lvl": -1,
        "id": 13
      },
      {
        "lvl": -1,
        "id": 14
      },
      {
        "lvl": -1,
        "id": 15
      },
      {
        "lvl": -1,
        "id": 16
      },
      {
        "lvl": -1,
        "id": 17
      },
      {
        "lvl": -1,
        "id": 18
      },
      {
        "lvl": -1,
        "id": 19
      },
      {
        "lvl": -1,
        "id": 20
      }
    ],
    "lvl": -1,
    "mods": [
      {
        "cls": 0
      }
    ],
    "prob": 0.10950112,
    "v": "7",
    "version": "v20.20"
  },
  "path": "websocket-driver-0.7.2-java.gem",
  "raw": {
    "files": [
      {
        "depth": 0,
        "facts": {
          "metrics": {
            "archive": {
              "directory_count": 0,
              "double_extension_count": 0,
              "executable_count": 0,
              "file_count": 3,
              "format.regular_count": 3,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "max_filename_length": 17,
              "member_count": 3,
              "misplaced_executable_count": 0,
              "nested_archive_count": 3,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_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_spread_seconds": 0,
              "timing.mtime_unique_count": 1,
              "uncompressed_size": 21640,
              "unicode_filename_count": 0
            },
            "binary": {
              "peak_region_bytes": 19456,
              "peak_region_entropy": 7.81
            },
            "file": {
              "entropy": 7.5,
              "size": 25088
            },
            "gem": {
              "dependency_count": 5,
              "development_dependency_count": 4,
              "runtime_dependency_count": 1
            }
          }
        },
        "id": 0,
        "ident": {
          "name": {
            "value": "websocket-driver",
            "source": "gem.name",
            "verified": false
          },
          "urls": [
            {
              "url": "https://github.com/faye/websocket-driver-ruby",
              "kind": "homepage",
              "source": "gem.homepage"
            }
          ],
          "trust": "unsigned",
          "authors": [
            {
              "name": "James Coglan",
              "role": "author",
              "source": "gem.authors"
            }
          ],
          "version": {
            "value": "0.7.2",
            "source": "gem.version",
            "verified": false
          },
          "description": {
            "value": "WebSocket protocol handler with pluggable I/O",
            "source": "gem.description",
            "verified": false
          }
        },
        "mol": "K₂(AmLi)H₄(Cm₇CrDb₉)Md₆(BkIn₆NePa₃Pt₂)",
        "path": "websocket-driver-0.7.2-java.gem",
        "refs": [
          {
            "kind": "dependency",
            "to": "pkg:gem/websocket-extensions"
          }
        ],
        "risk": 26,
        "sha": "d889ff4718f13b86fc71e77bf2ec01e303083c86fb9cd793b3a591c19f490ebd",
        "size": 25088,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive contains at least ten members",
            "id": "metadata/archive/layout::archive-at-least-10-members"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Ruby extconf create_makefile call",
            "id": "metadata/build/package/recipe/gemspec::extconf-create-makefile-call"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Ruby mkmf native extension helper",
            "id": "metadata/build/package/recipe/gemspec::extconf-mkmf-require"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Ruby extconf native build helper",
            "from": [
              {
                "file": 2
              },
              {
                "file": 7,
                "line": 1,
                "off": 9
              }
            ],
            "id": "metadata/build/package/recipe/gemspec::extconf-native-build-helper",
            "uses": [
              1,
              2
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "File is named extconf.rb",
            "id": "metadata/build/package/recipe/gemspec::filename-extconf"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Basename is uppercase README.md",
            "id": "metadata/filename/identity::uppercase-readme-md-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Ruby imports the Base64 library",
            "id": "metadata/import/builtin::ruby-require-base64"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports base64",
            "id": "metadata/import/ruby/base64::base64"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports digest/md5",
            "id": "metadata/import/ruby/digest/md5::digest/md5"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports digest/sha1",
            "id": "metadata/import/ruby/digest/sha1::digest/sha1"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports websocket/extensions",
            "id": "metadata/import/ruby/websocket/extensions::websocket/extensions"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports websocket/mask",
            "id": "metadata/import/ruby/websocket/mask::websocket/mask"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Markdown-style heading precedes a code fence",
            "id": "metadata/lang/source/syntax/markup/markdown::markdown-heading-before-fenced-block"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Caret or XOR operation token in source",
            "id": "metadata/lang/source/syntax/operator::caret-or-xor-token-text"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "PKG-INFO with no description body",
            "id": "metadata/package/description/presence::pkginfo-no-description-body"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Names a RubyGems extension builder file",
            "id": "metadata/package/files/rubygems::rubygems-builder-target-name"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Digest/expected label near a hexadecimal value",
            "id": "metadata/package/integrity::digest-label-with-hexadecimal-value"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "HTTP Basic authentication scheme literal",
            "id": "micro-behaviors/communications/http/basic-auth::basic-scheme-literal"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "HTTP protocol version strings",
            "id": "micro-behaviors/communications/http/message::http-versions"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Ruby HTTP URL prefix or client reference",
            "from": [
              {
                "file": 2
              },
              {
                "file": 16,
                "line": 37,
                "off": 1004
              }
            ],
            "id": "micro-behaviors/communications/http/request/reference::ruby-http-api-reference-group",
            "uses": [
              112
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "HTTP response line returns status 400",
            "id": "micro-behaviors/communications/http/response::wire-http-400-status",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.85,
            "crit": 3,
            "desc": "WebSocket protocol headers",
            "id": "micro-behaviors/communications/http/websocket::websocket-headers",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.9,
            "crit": 3,
            "desc": "WebSocket subprotocol header",
            "id": "micro-behaviors/communications/http/websocket::websocket-subprotocol-header",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.6,
            "crit": 3,
            "desc": "References an unencrypted ws:// WebSocket URL",
            "id": "micro-behaviors/communications/http/websocket::ws-scheme",
            "mbc": "C0002"
          },
          {
            "atk": "T1071",
            "conf": 0.8,
            "crit": 3,
            "desc": "Ruby socket write call",
            "id": "micro-behaviors/communications/socket/send/stream::ruby-socket-write-call",
            "mbc": "C0001"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Calls Ruby URI.parse",
            "id": "micro-behaviors/communications/url/parse::ruby-uri-parse"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "WebSocket class reference",
            "id": "micro-behaviors/communications/websocket/library::websocket-class-reference"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls MD5 digest API",
            "id": "micro-behaviors/crypto/hash/digest/md5::source-md5-digest-api"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Source combines XOR and modulo",
            "id": "micro-behaviors/data/arithmetic::native-xor-modulo-arithmetic"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Ruby bitwise XOR expression",
            "id": "micro-behaviors/data/bitwise/mixed::ruby-xor-expression"
          },
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "Indexed array XOR assignment expression",
            "id": "micro-behaviors/data/bitwise/xor-forms/indexed::indexed-xor-array-assignment"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Parsed XOR binary expression",
            "id": "micro-behaviors/data/bitwise/xor/expression::parsed-caret-xor-expression"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Source calls a method named write",
            "id": "micro-behaviors/data/control-flow/dispatch/named::source-named-write-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Encodes Base64 data in Ruby",
            "id": "micro-behaviors/data/encode/base64/primitive::ruby-base64-encode-call"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Ruby references Base64 module methods",
            "id": "micro-behaviors/data/encoding/base64::ruby-base64-method-reference"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Dense Ruby binary packing calls",
            "id": "micro-behaviors/data/serialize/binary::dense-pack-unpack-calls",
            "mbc": "C0032"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Assigns or defaults bound to 1000-1024",
            "id": "micro-behaviors/data/string/assembly::variable-bound-1000-to-1024"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Ruby defines methods dynamically",
            "id": "micro-behaviors/metaprogramming/generation/function::ruby-dynamic-method-definition"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "GitHub service URL reference",
            "id": "well-known/app/development/code-forge/github::github-service-url"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "JRuby runtime marker",
            "id": "well-known/lib/runtime/scripted/jruby::module-marker"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Low JAR compression ratio",
            "id": "metadata/archive/compression::jar-low-compression-ratio"
          },
          {
            "conf": 0.92,
            "crit": 2,
            "desc": "Mid JAR compression ratio",
            "id": "metadata/archive/compression::jar-mid-compression-ratio"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Archive contains a script member",
            "id": "metadata/archive/layout::archive-contains-script-member"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Archive contains one to three members",
            "id": "metadata/archive/layout::archive-one-to-three-members"
          },
          {
            "conf": 0.91,
            "crit": 2,
            "desc": "Single directory JAR layout",
            "id": "metadata/archive/layout::jar-single-directory-layout"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Archive member is a README document",
            "id": "metadata/archive/member/filename/role::archive-readme-member"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Archive has no path traversal members",
            "id": "metadata/archive/member/path::no-path-traversal-members"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Binary has 3+ functions",
            "id": "metadata/binary/code/complexity::few-functions-3"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Binary has 24 or fewer functions",
            "id": "metadata/binary/code/complexity::functions-at-most-24"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Binary has 32 or fewer functions",
            "id": "metadata/binary/code/complexity::functions-at-most-32"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Binary exposes at most three functions",
            "id": "metadata/binary/code/complexity::no-functions"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "High-entropy region mass at least 1 KiB",
            "id": "metadata/binary/layout/entropy::binary-peak-region-mass-over-1k"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Archive manifest version header",
            "id": "metadata/build/manifest::archive-manifest-version-header"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Ruby native extension directory path",
            "id": "metadata/build/package/recipe/gemspec::ruby-extension-dir"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Decoded unicode-escape content",
            "id": "metadata/encoded-payload/unicode-escape"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Text, document, or config extension",
            "id": "metadata/file/extension/identity::doc-or-config-extension"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Java archive basename",
            "id": "metadata/file/extension/identity::java-archive-basename"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "JSON, text, or markdown filename extension",
            "id": "metadata/file/extension/identity::json-txt-md-basename"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Markdown or documentation file extension",
            "id": "metadata/file/extension/identity::markdown-file-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Very short file (under 12 lines)",
            "id": "metadata/file/line::file-under-12-lines"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "CAFEBABE magic at file start",
            "id": "metadata/file/magic/identity::cafebabe-magic"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "JVM class-file magic in analyzed bytes",
            "id": "metadata/file/magic/identity::jvm-classfile-magic"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High whitespace ratio",
            "id": "metadata/file/text-distribution::high-whitespace-ratio"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Basename starts README, REQUIREMENTS, or INSTALL",
            "id": "metadata/filename/name-form::readme-requirements-install-basename"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Rubygem internal archive structure file",
            "id": "metadata/filename/name-form::rubygem-archive"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports \u003cruby.h\u003e",
            "id": "metadata/import/c/ruby/h::ruby/h"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Small source file (\u003c=10KB) with 10+ imports",
            "id": "metadata/import/count::script-many-imports-10-small"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports java.io.IOException",
            "id": "metadata/import/java/java/io/ioexception::java/io/ioexception"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.anno.JRubyMethod",
            "id": "metadata/import/java/org/jruby/anno/jrubymethod::org/jruby/anno/jrubymethod"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.Ruby",
            "id": "metadata/import/java/org/jruby/ruby::org/jruby/ruby"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyClass",
            "id": "metadata/import/java/org/jruby/rubyclass::org/jruby/rubyclass"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyModule",
            "id": "metadata/import/java/org/jruby/rubymodule::org/jruby/rubymodule"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyObject",
            "id": "metadata/import/java/org/jruby/rubyobject::org/jruby/rubyobject"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyString",
            "id": "metadata/import/java/org/jruby/rubystring::org/jruby/rubystring"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.builtin.IRubyObject",
            "id": "metadata/import/java/org/jruby/runtime/builtin/irubyobject::org/jruby/runtime/builtin/irubyobject"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.load.BasicLibraryService",
            "id": "metadata/import/java/org/jruby/runtime/load/basiclibraryservice::org/jruby/runtime/load/basiclibraryservice"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.ObjectAllocator",
            "id": "metadata/import/java/org/jruby/runtime/objectallocator::org/jruby/runtime/objectallocator"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.ThreadContext",
            "id": "metadata/import/java/org/jruby/runtime/threadcontext::org/jruby/runtime/threadcontext"
          },
          {
            "conf": 0.88,
            "crit": 2,
            "desc": "JVM class references an anonymous inner class",
            "id": "metadata/import/jvm::jvm-anonymous-inner-class-reference"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports jruby",
            "id": "metadata/import/ruby/jruby::jruby"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports mkmf",
            "id": "metadata/import/ruby/mkmf::mkmf"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports securerandom",
            "id": "metadata/import/ruby/securerandom::securerandom"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports set",
            "id": "metadata/import/ruby/set::set"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports stringio",
            "id": "metadata/import/ruby/stringio::stringio"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports uri",
            "id": "metadata/import/ruby/uri::uri"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports websocket-driver/websocket_mask",
            "id": "metadata/import/ruby/websocket-driver/websocket_mask::websocket-driver/websocket_mask"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports websocket_mask",
            "id": "metadata/import/ruby/websocket_mask::websocket_mask"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Mandatory-language vocabulary",
            "id": "metadata/lang/natural/vocabulary/content-word::mandatory-word-english"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "uses": [
              127,
              128,
              129,
              131,
              132,
              133
            ]
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Five or fewer comment lines in file",
            "id": "metadata/lang/source/comment::few-comment-lines"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High comment-to-code ratio",
            "id": "metadata/lang/source/comment::high-comment-to-code-ratio"
          },
          {
            "conf": 0.4,
            "crit": 2,
            "desc": "Analyzed layer contains at most three strings",
            "id": "metadata/lang/source/literal/string/population::analyzed-layer-string-count-at-most-three"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "C-family include directive",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "metadata/lang/source/syntax/directive::c-include-directive"
          },
          {
            "conf": 0.6,
            "crit": 2,
            "desc": "Uses bitwise XOR syntax",
            "id": "metadata/lang/source/syntax/operator::bitwise-xor-operator"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "Package changelog or release notes document",
            "id": "metadata/package/documentation/source::changelog-document-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Package documentation basename",
            "id": "metadata/package/documentation/source::package-doc-reference-basename"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "README document basename",
            "id": "metadata/package/documentation/source::readme-any-basename"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "README Markdown basename",
            "id": "metadata/package/documentation/source::readme-markdown-basename"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "RubyGems specification YAML marker",
            "id": "metadata/package/ecosystem::rubygems-spec-yaml-marker"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "RubyGems bindir is bin",
            "id": "metadata/package/entrypoint/command::rubygems-bindir-bin"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Archive container path",
            "id": "metadata/package/files/included::archive-container-path"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm archive ships C/C++ source member",
            "id": "metadata/package/files/included::npm-archive-native-c-source-member"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "RubyGems package archive",
            "id": "metadata/package/files/rubygems::rubygems-package-archive"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Gzip-compressed tar archive",
            "id": "metadata/package/files/system-package::tar-gz-archive-format"
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Default initial version marker",
            "id": "metadata/package/versioning/scheme::version-marker"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Grant or authorization verb text",
            "id": "metadata/permission/prose::permission-grant-verb-english"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Permission or access term",
            "id": "metadata/permission/prose::permission-permission-term-english"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "HTTP/1.1 protocol version",
            "id": "micro-behaviors/communications/http/message::http-1-1-header"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "HTTP protocol prefix",
            "id": "micro-behaviors/communications/http/message::http-prefix"
          },
          {
            "atk": "T1071.001",
            "conf": 0.5,
            "crit": 2,
            "desc": "HTTP/1.x version string",
            "id": "micro-behaviors/communications/http/message::http-version",
            "mbc": "C0002"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "md5 hash algorithm",
            "id": "micro-behaviors/crypto/hash/digest/md5::md5-keyword"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Assigns an indexed XOR expression",
            "id": "micro-behaviors/data/bitwise/xor-forms/indexed::indexed-xor-assignment"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Expands a path using Ruby __FILE__",
            "id": "micro-behaviors/fs/path/self::ruby-expand-file-path"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Self-reference via __FILE__",
            "id": "micro-behaviors/fs/read/self::self-file-reference"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Archive contains at least six members",
            "id": "metadata/archive/layout::archive-at-least-6-members"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Natural-language command word",
            "id": "metadata/lang/natural/vocabulary/content-word::command-word-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Data word",
            "id": "metadata/lang/natural/vocabulary/content-word::data-word-phrase"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Secret-data term token",
            "id": "metadata/lang/natural/vocabulary/content-word::secret-data-term-token"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"have\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-4"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7"
          },
          {
            "conf": 0.92,
            "crit": 1,
            "desc": "payload_ prefix text",
            "id": "metadata/lang/natural/vocabulary/payload::payload-prefix-text"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Uppercase GET string literal",
            "id": "metadata/lang/source/literal/string/label::uppercase-get-literal"
          },
          {
            "conf": 0.4,
            "crit": 1,
            "desc": "Result name with field or assignment separator",
            "id": "metadata/lang/source/shape::result-field-or-assignment-syntax"
          },
          {
            "conf": 0.65,
            "crit": 1,
            "desc": "Token-named field assignment (weak auth signal)",
            "id": "micro-behaviors/communications/http/token-auth::token-field-assignment"
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "Contains the standalone word token",
            "id": "micro-behaviors/data/parse/vocabulary::token-word"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Java class contains a hidden path component",
            "id": "micro-behaviors/fs/path/personal::java-hidden-path-component"
          },
          {
            "atk": "T1027,T1140",
            "conf": 1.0,
            "crit": 1,
            "desc": "JVM class has few functions",
            "id": "objectives/anti-static/obfuscation/payload/embedded::java-few-class-functions"
          },
          {
            "conf": 0.9,
            "crit": 0,
            "desc": "Recognized mkmf extconf.rb native build script",
            "from": [
              {
                "file": 2
              },
              {
                "file": 7,
                "line": 1,
                "off": 9
              }
            ],
            "id": "metadata/build/package/recipe/gemspec::extconf-mkmf-build-script",
            "uses": [
              3,
              4
            ]
          }
        ],
        "type": "gem"
      },
      {
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 298,
              "peak_region_entropy": 7.24
            },
            "file": {
              "entropy": 7.24,
              "size": 298
            }
          }
        },
        "id": 1,
        "mol": "Md(Pa)",
        "path": "websocket-driver-0.7.2-java.gem!!checksums.yaml.gz",
        "pid": 0,
        "risk": 1,
        "sha": "75e49c19cc0e626d8640fbc66611137e756741b231d4eb9cda4dc75f549e0dbc",
        "sid": 10763993084,
        "size": 298,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Digest/expected label near a hexadecimal value",
            "id": "metadata/package/integrity::digest-label-with-hexadecimal-value"
          }
        ],
        "type": "gz"
      },
      {
        "depth": 1,
        "facts": {
          "metrics": {
            "archive": {
              "directory_count": 0,
              "double_extension_count": 0,
              "executable_count": 0,
              "file_count": 25,
              "format.regular_count": 25,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "max_filename_length": 46,
              "member_count": 25,
              "misplaced_executable_count": 0,
              "nested_archive_count": 1,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_count": 19,
              "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_spread_seconds": 0,
              "timing.mtime_unique_count": 1,
              "uncompressed_size": 63452,
              "unicode_filename_count": 0
            },
            "binary": {
              "peak_region_bytes": 19456,
              "peak_region_entropy": 7.81
            },
            "file": {
              "entropy": 7.99,
              "size": 20536
            }
          }
        },
        "id": 2,
        "mol": "K₂(AmLi)H₄(Cm₇CrDb₉)Md₅(BkIn₆NePt₂)",
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz",
        "pid": 0,
        "risk": 23,
        "sha": "a532f2969c360c47f11c4eee7260a805f3b2858d5b80f30fa41240c40d357fff",
        "sid": 10763993094,
        "size": 20536,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive contains at least ten members",
            "id": "metadata/archive/layout::archive-at-least-10-members"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Ruby extconf create_makefile call",
            "id": "metadata/build/package/recipe/gemspec::extconf-create-makefile-call"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Ruby mkmf native extension helper",
            "id": "metadata/build/package/recipe/gemspec::extconf-mkmf-require"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Ruby extconf native build helper",
            "from": [
              {
                "file": 7,
                "line": 1,
                "off": 9
              }
            ],
            "id": "metadata/build/package/recipe/gemspec::extconf-native-build-helper",
            "uses": [
              1,
              2
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "File is named extconf.rb",
            "id": "metadata/build/package/recipe/gemspec::filename-extconf"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Basename is uppercase README.md",
            "id": "metadata/filename/identity::uppercase-readme-md-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Ruby imports the Base64 library",
            "id": "metadata/import/builtin::ruby-require-base64"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports base64",
            "id": "metadata/import/ruby/base64::base64"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports digest/md5",
            "id": "metadata/import/ruby/digest/md5::digest/md5"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports digest/sha1",
            "id": "metadata/import/ruby/digest/sha1::digest/sha1"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports websocket/extensions",
            "id": "metadata/import/ruby/websocket/extensions::websocket/extensions"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports websocket/mask",
            "id": "metadata/import/ruby/websocket/mask::websocket/mask"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Markdown-style heading precedes a code fence",
            "id": "metadata/lang/source/syntax/markup/markdown::markdown-heading-before-fenced-block"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Caret or XOR operation token in source",
            "id": "metadata/lang/source/syntax/operator::caret-or-xor-token-text"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "HTTP Basic authentication scheme literal",
            "id": "micro-behaviors/communications/http/basic-auth::basic-scheme-literal"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "HTTP protocol version strings",
            "id": "micro-behaviors/communications/http/message::http-versions"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Ruby HTTP URL prefix or client reference",
            "from": [
              {
                "file": 16,
                "line": 37,
                "off": 1004
              }
            ],
            "id": "micro-behaviors/communications/http/request/reference::ruby-http-api-reference-group",
            "uses": [
              104
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "HTTP response line returns status 400",
            "id": "micro-behaviors/communications/http/response::wire-http-400-status",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.85,
            "crit": 3,
            "desc": "WebSocket protocol headers",
            "id": "micro-behaviors/communications/http/websocket::websocket-headers",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.9,
            "crit": 3,
            "desc": "WebSocket subprotocol header",
            "id": "micro-behaviors/communications/http/websocket::websocket-subprotocol-header",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.6,
            "crit": 3,
            "desc": "References an unencrypted ws:// WebSocket URL",
            "id": "micro-behaviors/communications/http/websocket::ws-scheme",
            "mbc": "C0002"
          },
          {
            "atk": "T1071",
            "conf": 0.8,
            "crit": 3,
            "desc": "Ruby socket write call",
            "id": "micro-behaviors/communications/socket/send/stream::ruby-socket-write-call",
            "mbc": "C0001"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Calls Ruby URI.parse",
            "id": "micro-behaviors/communications/url/parse::ruby-uri-parse"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "WebSocket class reference",
            "id": "micro-behaviors/communications/websocket/library::websocket-class-reference"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls MD5 digest API",
            "id": "micro-behaviors/crypto/hash/digest/md5::source-md5-digest-api"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Source combines XOR and modulo",
            "id": "micro-behaviors/data/arithmetic::native-xor-modulo-arithmetic"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Ruby bitwise XOR expression",
            "id": "micro-behaviors/data/bitwise/mixed::ruby-xor-expression"
          },
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "Indexed array XOR assignment expression",
            "id": "micro-behaviors/data/bitwise/xor-forms/indexed::indexed-xor-array-assignment"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Parsed XOR binary expression",
            "id": "micro-behaviors/data/bitwise/xor/expression::parsed-caret-xor-expression"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Source calls a method named write",
            "id": "micro-behaviors/data/control-flow/dispatch/named::source-named-write-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Encodes Base64 data in Ruby",
            "id": "micro-behaviors/data/encode/base64/primitive::ruby-base64-encode-call"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Ruby references Base64 module methods",
            "id": "micro-behaviors/data/encoding/base64::ruby-base64-method-reference"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Dense Ruby binary packing calls",
            "id": "micro-behaviors/data/serialize/binary::dense-pack-unpack-calls",
            "mbc": "C0032"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Assigns or defaults bound to 1000-1024",
            "id": "micro-behaviors/data/string/assembly::variable-bound-1000-to-1024"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Ruby defines methods dynamically",
            "id": "micro-behaviors/metaprogramming/generation/function::ruby-dynamic-method-definition"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "GitHub service URL reference",
            "id": "well-known/app/development/code-forge/github::github-service-url"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "JRuby runtime marker",
            "id": "well-known/lib/runtime/scripted/jruby::module-marker"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Low JAR compression ratio",
            "id": "metadata/archive/compression::jar-low-compression-ratio"
          },
          {
            "conf": 0.92,
            "crit": 2,
            "desc": "Mid JAR compression ratio",
            "id": "metadata/archive/compression::jar-mid-compression-ratio"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Archive contains a script member",
            "id": "metadata/archive/layout::archive-contains-script-member"
          },
          {
            "conf": 0.91,
            "crit": 2,
            "desc": "Single directory JAR layout",
            "id": "metadata/archive/layout::jar-single-directory-layout"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Archive member is a README document",
            "id": "metadata/archive/member/filename/role::archive-readme-member"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Archive has no path traversal members",
            "id": "metadata/archive/member/path::no-path-traversal-members"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Binary has 3+ functions",
            "id": "metadata/binary/code/complexity::few-functions-3"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Binary has 24 or fewer functions",
            "id": "metadata/binary/code/complexity::functions-at-most-24"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Binary has 32 or fewer functions",
            "id": "metadata/binary/code/complexity::functions-at-most-32"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Binary exposes at most three functions",
            "id": "metadata/binary/code/complexity::no-functions"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "High-entropy region mass at least 1 KiB",
            "id": "metadata/binary/layout/entropy::binary-peak-region-mass-over-1k"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Archive manifest version header",
            "id": "metadata/build/manifest::archive-manifest-version-header"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Ruby native extension directory path",
            "id": "metadata/build/package/recipe/gemspec::ruby-extension-dir"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Decoded unicode-escape content",
            "id": "metadata/encoded-payload/unicode-escape"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Text, document, or config extension",
            "id": "metadata/file/extension/identity::doc-or-config-extension"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Java archive basename",
            "id": "metadata/file/extension/identity::java-archive-basename"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "JSON, text, or markdown filename extension",
            "id": "metadata/file/extension/identity::json-txt-md-basename"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Markdown or documentation file extension",
            "id": "metadata/file/extension/identity::markdown-file-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Very short file (under 12 lines)",
            "id": "metadata/file/line::file-under-12-lines"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "CAFEBABE magic at file start",
            "id": "metadata/file/magic/identity::cafebabe-magic"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "JVM class-file magic in analyzed bytes",
            "id": "metadata/file/magic/identity::jvm-classfile-magic"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High whitespace ratio",
            "id": "metadata/file/text-distribution::high-whitespace-ratio"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Basename starts README, REQUIREMENTS, or INSTALL",
            "id": "metadata/filename/name-form::readme-requirements-install-basename"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Rubygem internal archive structure file",
            "id": "metadata/filename/name-form::rubygem-archive"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports \u003cruby.h\u003e",
            "id": "metadata/import/c/ruby/h::ruby/h"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Small source file (\u003c=10KB) with 10+ imports",
            "id": "metadata/import/count::script-many-imports-10-small"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports java.io.IOException",
            "id": "metadata/import/java/java/io/ioexception::java/io/ioexception"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.anno.JRubyMethod",
            "id": "metadata/import/java/org/jruby/anno/jrubymethod::org/jruby/anno/jrubymethod"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.Ruby",
            "id": "metadata/import/java/org/jruby/ruby::org/jruby/ruby"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyClass",
            "id": "metadata/import/java/org/jruby/rubyclass::org/jruby/rubyclass"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyModule",
            "id": "metadata/import/java/org/jruby/rubymodule::org/jruby/rubymodule"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyObject",
            "id": "metadata/import/java/org/jruby/rubyobject::org/jruby/rubyobject"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.RubyString",
            "id": "metadata/import/java/org/jruby/rubystring::org/jruby/rubystring"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.builtin.IRubyObject",
            "id": "metadata/import/java/org/jruby/runtime/builtin/irubyobject::org/jruby/runtime/builtin/irubyobject"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.load.BasicLibraryService",
            "id": "metadata/import/java/org/jruby/runtime/load/basiclibraryservice::org/jruby/runtime/load/basiclibraryservice"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.ObjectAllocator",
            "id": "metadata/import/java/org/jruby/runtime/objectallocator::org/jruby/runtime/objectallocator"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports org.jruby.runtime.ThreadContext",
            "id": "metadata/import/java/org/jruby/runtime/threadcontext::org/jruby/runtime/threadcontext"
          },
          {
            "conf": 0.88,
            "crit": 2,
            "desc": "JVM class references an anonymous inner class",
            "id": "metadata/import/jvm::jvm-anonymous-inner-class-reference"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports jruby",
            "id": "metadata/import/ruby/jruby::jruby"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports mkmf",
            "id": "metadata/import/ruby/mkmf::mkmf"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports securerandom",
            "id": "metadata/import/ruby/securerandom::securerandom"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports set",
            "id": "metadata/import/ruby/set::set"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports stringio",
            "id": "metadata/import/ruby/stringio::stringio"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports uri",
            "id": "metadata/import/ruby/uri::uri"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports websocket-driver/websocket_mask",
            "id": "metadata/import/ruby/websocket-driver/websocket_mask::websocket-driver/websocket_mask"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports websocket_mask",
            "id": "metadata/import/ruby/websocket_mask::websocket_mask"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Mandatory-language vocabulary",
            "id": "metadata/lang/natural/vocabulary/content-word::mandatory-word-english"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "uses": [
              119,
              120,
              121,
              123,
              124,
              125
            ]
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Five or fewer comment lines in file",
            "id": "metadata/lang/source/comment::few-comment-lines"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High comment-to-code ratio",
            "id": "metadata/lang/source/comment::high-comment-to-code-ratio"
          },
          {
            "conf": 0.4,
            "crit": 2,
            "desc": "Analyzed layer contains at most three strings",
            "id": "metadata/lang/source/literal/string/population::analyzed-layer-string-count-at-most-three"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "C-family include directive",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "metadata/lang/source/syntax/directive::c-include-directive"
          },
          {
            "conf": 0.6,
            "crit": 2,
            "desc": "Uses bitwise XOR syntax",
            "id": "metadata/lang/source/syntax/operator::bitwise-xor-operator"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "Package changelog or release notes document",
            "id": "metadata/package/documentation/source::changelog-document-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Package documentation basename",
            "id": "metadata/package/documentation/source::package-doc-reference-basename"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "README document basename",
            "id": "metadata/package/documentation/source::readme-any-basename"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "README Markdown basename",
            "id": "metadata/package/documentation/source::readme-markdown-basename"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Archive container path",
            "id": "metadata/package/files/included::archive-container-path"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm archive ships C/C++ source member",
            "id": "metadata/package/files/included::npm-archive-native-c-source-member"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Gzip-compressed tar archive",
            "id": "metadata/package/files/system-package::tar-gz-archive-format"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Grant or authorization verb text",
            "id": "metadata/permission/prose::permission-grant-verb-english"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Permission or access term",
            "id": "metadata/permission/prose::permission-permission-term-english"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "HTTP/1.1 protocol version",
            "id": "micro-behaviors/communications/http/message::http-1-1-header"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "HTTP protocol prefix",
            "id": "micro-behaviors/communications/http/message::http-prefix"
          },
          {
            "atk": "T1071.001",
            "conf": 0.5,
            "crit": 2,
            "desc": "HTTP/1.x version string",
            "id": "micro-behaviors/communications/http/message::http-version",
            "mbc": "C0002"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "md5 hash algorithm",
            "id": "micro-behaviors/crypto/hash/digest/md5::md5-keyword"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Assigns an indexed XOR expression",
            "id": "micro-behaviors/data/bitwise/xor-forms/indexed::indexed-xor-assignment"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Expands a path using Ruby __FILE__",
            "id": "micro-behaviors/fs/path/self::ruby-expand-file-path"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Self-reference via __FILE__",
            "id": "micro-behaviors/fs/read/self::self-file-reference"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Archive contains at least six members",
            "id": "metadata/archive/layout::archive-at-least-6-members"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Natural-language command word",
            "id": "metadata/lang/natural/vocabulary/content-word::command-word-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Data word",
            "id": "metadata/lang/natural/vocabulary/content-word::data-word-phrase"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Secret-data term token",
            "id": "metadata/lang/natural/vocabulary/content-word::secret-data-term-token"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"have\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-4"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7"
          },
          {
            "conf": 0.92,
            "crit": 1,
            "desc": "payload_ prefix text",
            "id": "metadata/lang/natural/vocabulary/payload::payload-prefix-text"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Uppercase GET string literal",
            "id": "metadata/lang/source/literal/string/label::uppercase-get-literal"
          },
          {
            "conf": 0.4,
            "crit": 1,
            "desc": "Result name with field or assignment separator",
            "id": "metadata/lang/source/shape::result-field-or-assignment-syntax"
          },
          {
            "conf": 0.65,
            "crit": 1,
            "desc": "Token-named field assignment (weak auth signal)",
            "id": "micro-behaviors/communications/http/token-auth::token-field-assignment"
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "Contains the standalone word token",
            "id": "micro-behaviors/data/parse/vocabulary::token-word"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Java class contains a hidden path component",
            "id": "micro-behaviors/fs/path/personal::java-hidden-path-component"
          },
          {
            "atk": "T1027,T1140",
            "conf": 1.0,
            "crit": 1,
            "desc": "JVM class has few functions",
            "id": "objectives/anti-static/obfuscation/payload/embedded::java-few-class-functions"
          },
          {
            "conf": 0.9,
            "crit": 0,
            "desc": "Recognized mkmf extconf.rb native build script",
            "from": [
              {
                "file": 7,
                "line": 1,
                "off": 9
              }
            ],
            "id": "metadata/build/package/recipe/gemspec::extconf-mkmf-build-script",
            "uses": [
              3,
              4
            ]
          }
        ],
        "type": "tar.gz"
      },
      {
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 806,
              "peak_region_entropy": 7.72
            },
            "file": {
              "entropy": 7.72,
              "size": 806
            }
          }
        },
        "id": 3,
        "mol": "Md(Pa₂)",
        "path": "websocket-driver-0.7.2-java.gem!!metadata.gz",
        "pid": 0,
        "risk": 3,
        "sha": "e1f35596f08035e52c35d9d882301309148070aadfae0c5018bf97a4885101f2",
        "sid": 10763993098,
        "size": 806,
        "traits": [
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "PKG-INFO with no description body",
            "id": "metadata/package/description/presence::pkginfo-no-description-body"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Names a RubyGems extension builder file",
            "id": "metadata/package/files/rubygems::rubygems-builder-target-name"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "RubyGems specification YAML marker",
            "id": "metadata/package/ecosystem::rubygems-spec-yaml-marker"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "RubyGems bindir is bin",
            "id": "metadata/package/entrypoint/command::rubygems-bindir-bin"
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Default initial version marker",
            "id": "metadata/package/versioning/scheme::version-marker"
          }
        ],
        "type": "gz"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "---\nSHA256:\n  metadata.gz: e1f35596f08035e52c35d9d882301309148070aadfae0c5018bf97a4885101f2\n  data.tar.gz: a532f2969c360c47f11c4eee7260a805f3b2858d5b80f30fa41240c40d357fff\nSHA512:\n  metadata.gz: ac3ffd73ef983bc0cec1bb1de9c9672a3682232775ea8021559ee952bab21a88bf712f6707059668d1ea039a888a493950aa01992b9240c64553d2ad0c430366\n  data.tar.gz: '083628e6cd562465acc010242dd5442688ec54c2e00fcecced8c43225f66e37cc7949aecd9004ed7728d65981cbfdab11a496c062de5516fcd14f576941f0841'\n"
          }
        ],
        "depth": 2,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 470,
              "peak_region_entropy": 4.47
            },
            "file": {
              "entropy": 4.47,
              "size": 470
            }
          }
        },
        "id": 4,
        "mol": "Md(Pa)",
        "path": "websocket-driver-0.7.2-java.gem!!checksums.yaml.gz!!checksums.yaml",
        "pid": 1,
        "risk": 1,
        "sha": "8e48a564fc1c64d698d81f50fafc268a805c8315f68a015e66441914e220132e",
        "sid": 10763993088,
        "size": 470,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Digest/expected label near a hexadecimal value",
            "id": "metadata/package/integrity::digest-label-with-hexadecimal-value",
            "spans": [
              [
                4,
                87
              ],
              [
                172,
                150
              ]
            ]
          }
        ],
        "type": "yaml"
      },
      {
        "ctx": [
          {
            "col": 95,
            "line": 1,
            "ln": 94,
            "s": "ps://travis-ci.org/faye/websocket-driver-ruby)\n\nThis module provides a complete implementation of the WebSocket protocols that\ncan be hooked up to any TCP library. It aims to simplify things by decoupling\nthe protocol deta"
          },
          {
            "col": 56,
            "line": 5,
            "ln": 354,
            "s": "s only need to implement\ncode to stream data in and out of it without needing to know anything about how\nthe protocol actually works. Think of it as a complete WebSocket system with\npluggable I/O.\n\nDue to this design, you get a lot of things for free. In particular, if you hook\nthis module up to some I/O object, it will do all of this for "
          },
          {
            "col": 46,
            "line": 13,
            "ln": 746,
            "s": "lk to the client\n- Generate and send both server- and client-side handshakes\n- Recognize when the ha"
          },
          {
            "col": 1,
            "line": 17,
            "ln": 965,
            "s": "- Negotiate and use extensions via the\n  [websocket-extensions](https://github.com/faye/websocket-extensions-ruby)\n  module\n- Buffer sent messages until the handshake process is finished\n- Deal with proxies that"
          },
          {
            "col": 9,
            "line": 24,
            "ln": 1336,
            "s": "ch text, binary, ping, pong and close frames\n- Manage the socket-closing handshake process\n- Automatica"
          },
          {
            "col": 31,
            "line": 30,
            "ln": 1642,
            "s": "e simple WebSocket support for any Ruby server or\nI/O system.\n\n\n## Installation\n\n```\n$ gem install websocket-driver\n```\n\n\n## Usage\n\nTo build either a server-side or client-side socket, the only requirement is\nthat you supply a `socket` object with these methods:\n\n- `so"
          },
          {
            "col": 33,
            "line": 71,
            "ln": 2796,
            "s": ", and if so create a protocol driver for it.\nYou must give the driver an object with the `env`, `url` and `write` methods. A\nsimple example might be:\n\n```"
          },
          {
            "col": 6,
            "line": 117,
            "ln": 3905,
            "s": "ocket. Then it uses the Rack hijack API to gain access to the TCP stream,\nand uses EventMachine to stream in incoming data from the client, handing\nin"
          },
          {
            "col": 4,
            "line": 154,
            "ln": 5162,
            "s": "   end\n    end\n\n    @driver.on :message, -\u003e (e) { @driver.text(e.data) }\n    @driver.on :close,   -\u003e (e"
          },
          {
            "col": 70,
            "line": 176,
            "ln": 5627,
            "s": "']` stream,\nbut only as much of the body as you have so far routed to it using the `parse`\nmethod.\n\n\n### Client-side\n\nSimilarly, to implement a WebS"
          },
          {
            "col": 26,
            "line": 271,
            "ln": 8837,
            "s": "client supports the behaviour.\n\nNote that most of these methods are commands: if they produce data that should\nbe sent over the socket, they"
          }
        ],
        "depth": 2,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 10071,
              "peak_region_entropy": 5.1
            },
            "file": {
              "entropy": 4.82,
              "size": 13143
            },
            "text": {
              "avg_line_length": 33.59,
              "char_entropy": 4.82,
              "digit_ratio": 0,
              "empty_line_ratio": 0.27,
              "last_line_length": 25,
              "line_length_stddev": 31.84,
              "lines": 380,
              "long_token_count": 1,
              "max_line_length": 140,
              "max_whitespace_run": 3,
              "space_count": 1886,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.1,
              "unique_chars": 87,
              "whitespace_ratio": 0.17
            }
          }
        },
        "id": 5,
        "mol": "K(Am)Md₂(Pt)",
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!README.md",
        "pid": 2,
        "risk": 4,
        "sha": "099599239c1e00a6c225d568cef748cafbcc54da37ef1695281fade6966b92fb",
        "sid": 5165059947,
        "size": 13143,
        "traits": [
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Basename is uppercase README.md",
            "id": "metadata/filename/identity::uppercase-readme-md-basename"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Markdown-style heading precedes a code fence",
            "id": "metadata/lang/source/syntax/markup/markdown::markdown-heading-before-fenced-block",
            "spans": [
              [
                1706,
                20
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "GitHub service URL reference",
            "id": "well-known/app/development/code-forge/github::github-service-url",
            "spans": [
              [
                1029,
                19
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Text, document, or config extension",
            "id": "metadata/file/extension/identity::doc-or-config-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "JSON, text, or markdown filename extension",
            "id": "metadata/file/extension/identity::json-txt-md-basename"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Markdown or documentation file extension",
            "id": "metadata/file/extension/identity::markdown-file-basename"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Basename starts README, REQUIREMENTS, or INSTALL",
            "id": "metadata/filename/name-form::readme-requirements-install-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Mandatory-language vocabulary",
            "id": "metadata/lang/natural/vocabulary/content-word::mandatory-word-english",
            "spans": [
              [
                2844,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Package documentation basename",
            "id": "metadata/package/documentation/source::package-doc-reference-basename"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "README document basename",
            "id": "metadata/package/documentation/source::readme-any-basename"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "README Markdown basename",
            "id": "metadata/package/documentation/source::readme-markdown-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Grant or authorization verb text",
            "id": "metadata/permission/prose::permission-grant-verb-english",
            "spans": [
              [
                2850,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Permission or access term",
            "id": "metadata/permission/prose::permission-permission-term-english",
            "spans": [
              [
                3953,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Natural-language command word",
            "id": "metadata/lang/natural/vocabulary/content-word::command-word-token",
            "spans": [
              [
                8904,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment",
            "spans": [
              [
                1368,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token",
            "spans": [
              [
                778,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                1836,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                192,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                402,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3",
            "spans": [
              [
                216,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"have\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-4",
            "spans": [
              [
                5675,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                596,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                531,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                142,
                0
              ]
            ]
          }
        ],
        "type": "markdown"
      },
      {
        "depth": 2,
        "id": 6,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!ext/websocket-driver/WebsocketMaskService.java",
        "pid": 2,
        "risk": 0,
        "sha": "4690b089aa5364f8794fdd9f457a9ebcd4b09895d0697243faa3f0be9fba3c06",
        "sid": 23760303,
        "size": 1860,
        "type": "java"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "require 'mkmf'\nextension_name = 'websocket_mask'\ndir_config(extension_name)\ncreate_makefile(extension_name)\n"
          }
        ],
        "depth": 2,
        "facts": {
          "imp": [
            [
              "",
              "require"
            ],
            [
              "",
              "dir_config"
            ],
            [
              "",
              "create_makefile"
            ],
            [
              "",
              "mkmf"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 3,
              "max_depth": 4,
              "node_count": 27
            },
            "binary": {
              "peak_region_bytes": 108,
              "peak_region_entropy": 4.32
            },
            "binds": {
              "count": 1
            },
            "file": {
              "entropy": 4.32,
              "size": 108
            },
            "identifiers": {
              "all_lowercase_ratio": 1,
              "avg_entropy": 2.93,
              "avg_length": 11.5,
              "count": 6,
              "length_stddev": 3.2,
              "max_length": 15,
              "min_length": 7,
              "reuse_ratio": 0.67,
              "unique": 4
            },
            "imports": {
              "count": 1,
              "third_party_count": 1,
              "third_party_ratio": 1
            },
            "strings": {
              "avg_entropy": 2.44,
              "avg_length": 9,
              "bytes": 18,
              "count": 2,
              "entropy_stddev": 0.94,
              "max_length": 14
            },
            "text": {
              "avg_line_length": 26,
              "char_entropy": 4.32,
              "identifier_density": 1.5,
              "import_density": 25,
              "last_line_length": 31,
              "line_length_stddev": 7.38,
              "lines": 4,
              "max_line_length": 33,
              "max_whitespace_run": 1,
              "normalized_import_count": 0.5,
              "normalized_string_count": 1,
              "normalized_unique_identifiers": 2,
              "space_count": 3,
              "string_density": 0.5,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.16,
              "unique_chars": 27,
              "whitespace_ratio": 0.06
            }
          },
          "tgt": [
            "create_makefile",
            "dir_config",
            "require"
          ]
        },
        "id": 7,
        "mol": "Md(Bk)",
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!ext/websocket-driver/extconf.rb",
        "pid": 2,
        "risk": 2,
        "sha": "92ee469c779f1697ad4a5f13f9661789dfa89e77e570115c2312d3ae63c8bcd7",
        "sid": 23761162,
        "size": 108,
        "traits": [
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Ruby extconf create_makefile call",
            "id": "metadata/build/package/recipe/gemspec::extconf-create-makefile-call",
            "spans": [
              [
                76,
                15
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Ruby mkmf native extension helper",
            "id": "metadata/build/package/recipe/gemspec::extconf-mkmf-require",
            "spans": [
              [
                9,
                4
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Ruby extconf native build helper",
            "id": "metadata/build/package/recipe/gemspec::extconf-native-build-helper",
            "spans": [
              [
                9,
                4
              ],
              [
                76,
                15
              ]
            ],
            "uses": [
              0,
              1
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "File is named extconf.rb",
            "id": "metadata/build/package/recipe/gemspec::filename-extconf"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Ruby native extension directory path",
            "id": "metadata/build/package/recipe/gemspec::ruby-extension-dir"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Very short file (under 12 lines)",
            "id": "metadata/file/line::file-under-12-lines"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports mkmf",
            "id": "metadata/import/ruby/mkmf::mkmf",
            "spans": [
              [
                9,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 0,
            "desc": "Recognized mkmf extconf.rb native build script",
            "id": "metadata/build/package/recipe/gemspec::extconf-mkmf-build-script",
            "spans": [
              [
                9,
                0
              ]
            ],
            "uses": [
              2,
              3
            ]
          }
        ],
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 8,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!ext/websocket-driver/websocket_mask.c",
        "pid": 2,
        "risk": 0,
        "sha": "a0a475b33c6729a44359ea0e5e643b77f1466c97e7e870b490f0a9112169ff72",
        "sid": 23761318,
        "size": 767,
        "type": "c"
      },
      {
        "depth": 2,
        "id": 9,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/driver.rb",
        "pid": 2,
        "risk": 0,
        "sha": "9cf97bebbfaea84ffe38bffab64813238b96d3548c00ad2be1b7ee84467f627d",
        "sid": 3160799062,
        "size": 5819,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 10,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/driver/client.rb",
        "pid": 2,
        "risk": 0,
        "sha": "b519fc8483cdb38972f2546a21fa720f3060e2598ffbe9e2268f87c5b51cc9d1",
        "sid": 2903185748,
        "size": 4004,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 11,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/driver/draft75.rb",
        "pid": 2,
        "risk": 0,
        "sha": "5be630ebbae648df2b120832759b18ac6d442744b81538149865bdb7f1a2c756",
        "sid": 2738806836,
        "size": 2477,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 12,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/driver/draft76.rb",
        "pid": 2,
        "risk": 0,
        "sha": "98efdc734614f19eb75ff1dabf025cb98cb1746269a19304ce1ccf20f60e8323",
        "sid": 3160798981,
        "size": 2641,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 13,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/driver/hybi.rb",
        "pid": 2,
        "risk": 0,
        "sha": "8240f3f6fb9ef9503ab7e2f6bc6ba3ab31a5f0b86a1d5fa0f7aaa94061321910",
        "sid": 3160798460,
        "size": 12351,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 14,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/driver/proxy.rb",
        "pid": 2,
        "risk": 0,
        "sha": "fc40259ebd709b69c3c9cb8c92154223dc4ee7d4ee63ca01ae7f78877a50016d",
        "sid": 2903186363,
        "size": 1729,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 15,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/driver/server.rb",
        "pid": 2,
        "risk": 0,
        "sha": "879359523f5b038e746f1854187eeaa5ab09621abbd5e607a8879b494cf1a7ac",
        "sid": 23761036,
        "size": 1839,
        "type": "ruby"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "module WebSocket\n  module HTTP\n\n    class Request\n      include Headers\n\n      REQUEST_LINE     = /^(OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT) ([\\x21-\\x7e]+) (HTTP\\/[0-9]+\\.[0-9]+)$/\n      REQUEST_TARGET   = /^(.*?)(\\?(.*))?$/\n      RESERVED_HEADERS = %w[content-length content-type]\n\n      attr_reader :env\n\n    private\n\n      def start_line(line)\n        return false unless parsed = line.scan(REQUEST_LINE).first\n\n        target = parsed[1].scan(REQUEST_TARGET).first\n\n        @env = {\n          'REQUEST_METHOD' =\u003e parsed[0],\n          'SCRIPT_NAME'    =\u003e '',\n          'PATH_INFO'      =\u003e target[0],\n          'QUERY_STRING'   =\u003e target[2] || ''\n        }\n        true\n      end\n\n      def complete\n        super\n        @headers.each do |name, value|\n          rack_name = name.upcase.gsub(/-/, '_')\n          rack_name = \"HTTP_#{ rack_name }\" unless RESERVED_HEADERS.include?(name)\n          @env[rack_name] = value\n        end\n        if host = @env['HTTP_HOST']\n          uri = URI.parse(\"http://#{ host }\")\n          @env['SERVER_NAME'] = uri.host\n          @env['SERVER_PORT'] = uri.port.to_s\n        end\n      end\n    end\n\n  end\nend\n"
          }
        ],
        "depth": 2,
        "facts": {
          "funcs": [
            [
              "start_line",
              334
            ],
            [
              "complete",
              697
            ]
          ],
          "imp": [
            [
              "",
              "include"
            ],
            [
              "",
              "attr_reader"
            ],
            [
              "",
              "line.scan.first"
            ],
            [
              "",
              "line.scan"
            ],
            [
              "",
              "@headers.each"
            ],
            [
              "",
              "name.upcase.gsub"
            ],
            [
              "",
              "name.upcase"
            ],
            [
              "",
              "RESERVED_HEADERS.include?"
            ],
            [
              "",
              "URI.parse"
            ],
            [
              "",
              "uri.host"
            ],
            [
              "",
              "uri.port.to_s"
            ],
            [
              "",
              "uri.port"
            ]
          ],
          "mbr": [
            "@headers.each",
            "RESERVED_HEADERS.include?",
            "URI.parse",
            "line.scan",
            "line.scan.first",
            "name.upcase",
            "name.upcase.gsub",
            "uri.host",
            "uri.port",
            "uri.port.to_s"
          ],
          "metrics": {
            "ast": {
              "call_count": 14,
              "max_depth": 16,
              "max_member_depth": 3,
              "member_count": 10,
              "node_count": 298,
              "op.concat": 12,
              "op.lor": 1,
              "op_density.concat": 0.04,
              "op_density.lor": 0
            },
            "binary": {
              "peak_region_bytes": 1024,
              "peak_region_entropy": 4.93
            },
            "binds": {
              "count": 10
            },
            "file": {
              "entropy": 4.88,
              "size": 1151
            },
            "functions": {
              "anonymous": 1,
              "avg_length_lines": 10.33,
              "avg_name_length": 9,
              "avg_nesting_depth": 0.33,
              "avg_param_name_length": 4.33,
              "avg_params": 1,
              "code_ratio": 0.58,
              "count": 5,
              "density": 6.67,
              "length_stddev": 3.77,
              "max_length_lines": 13,
              "max_nesting_depth": 1,
              "max_params": 2,
              "min_length_lines": 5,
              "nested": 1,
              "no_params_count": 1
            },
            "identifiers": {
              "all_lowercase_ratio": 0.66,
              "all_uppercase_ratio": 0.16,
              "avg_entropy": 2.39,
              "avg_length": 6.63,
              "count": 56,
              "length_stddev": 3.18,
              "max_length": 16,
              "min_length": 3,
              "reuse_ratio": 0.57,
              "unique": 32
            },
            "source": {
              "class_count": 3,
              "function_count": 2
            },
            "strings": {
              "avg_entropy": 2.93,
              "avg_length": 11.08,
              "bytes": 144,
              "count": 13,
              "empty_count": 2,
              "entropy_stddev": 1,
              "max_length": 31,
              "url_count": 1
            },
            "text": {
              "anonymous_function_ratio": 0.33,
              "avg_line_length": 24.58,
              "char_entropy": 4.88,
              "digit_ratio": 0.02,
              "empty_line_ratio": 0.2,
              "escape_density": 0.17,
              "hex_escape_count": 2,
              "identifier_density": 1.24,
              "identifiers_to_functions_ratio": 10.67,
              "last_line_length": 3,
              "line_length_stddev": 24.42,
              "lines": 45,
              "max_line_length": 115,
              "max_whitespace_run": 6,
              "normalized_function_count": 0.45,
              "normalized_string_count": 1.94,
              "normalized_unique_identifiers": 5.83,
              "repeated_char_sequences": 10,
              "space_count": 326,
              "string_density": 0.29,
              "strings_to_functions_ratio": 4.33,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.06,
              "unique_chars": 78,
              "whitespace_ratio": 0.32
            }
          },
          "tgt": [
            "@headers.each",
            "RESERVED_HEADERS.include?",
            "URI.parse",
            "attr_reader",
            "include",
            "line.scan",
            "line.scan.first",
            "name.upcase",
            "name.upcase.gsub",
            "uri.host",
            "uri.port",
            "uri.port.to_s"
          ]
        },
        "id": 16,
        "mol": "H(Cm₂)",
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/http/request.rb",
        "pid": 2,
        "risk": 3,
        "sha": "a3bfbe07ba6432d569ca3f6d692f91d59ebcb89eb3c9ac7bf7823320a89fec29",
        "sid": 23761357,
        "size": 1151,
        "traits": [
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Ruby HTTP URL prefix or client reference",
            "id": "micro-behaviors/communications/http/request/reference::ruby-http-api-reference-group",
            "spans": [
              [
                1004,
                7
              ]
            ],
            "uses": [
              7
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Calls Ruby URI.parse",
            "id": "micro-behaviors/communications/url/parse::ruby-uri-parse",
            "spans": [
              [
                993,
                9
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Decoded unicode-escape content",
            "id": "metadata/encoded-payload/unicode-escape",
            "spans": [
              [
                79,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "HTTP protocol prefix",
            "id": "micro-behaviors/communications/http/message::http-prefix",
            "spans": [
              [
                1004,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token",
            "spans": [
              [
                118,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token",
            "spans": [
              [
                127,
                0
              ]
            ]
          }
        ],
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 17,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/http/response.rb",
        "pid": 2,
        "risk": 0,
        "sha": "aef0fc9ba0d1f4cf7890bb6b96cd69aa652b47d2760e0441d348e64e8750c862",
        "sid": 2738806846,
        "size": 481,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 18,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/mask.rb",
        "pid": 2,
        "risk": 0,
        "sha": "7a7b16d181197ce6aec305b34bfb302bfa5ae925e8e91079401bd1b7720883d9",
        "sid": 23760874,
        "size": 296,
        "type": "ruby"
      },
      {
        "depth": 2,
        "id": 19,
        "path": "websocket-driver-0.7.2-java.gem!!metadata.gz!!metadata",
        "pid": 3,
        "risk": 0,
        "sha": "fefbe583e031680e8ea5cc86d96e2f957ddafe29452fcd7b4ef3671fecc4efb6",
        "sid": 10763993100,
        "size": 3567,
        "type": "pkg_info"
      },
      {
        "depth": 3,
        "id": 20,
        "path": "websocket-driver-0.7.2-java.gem!!data.tar.gz!!lib/websocket/http/request.rb!!lib/websocket/http/request.rb##unicode-escape@0",
        "pid": 16,
        "risk": 0,
        "sha": "234c615b47cf8b57608a2eb8fe5d4308ea9c5c10c2305728cba400fc8fbf65ef",
        "sid": 4833458002,
        "size": 103,
        "type": "unknown"
      }
    ],
    "v": 8
  }
}