{
  "format": "LLM-SCAN",
  "format_version": "1.0",
  "generator": {
    "name": "llmscan-engine",
    "version": "2.0.0"
  },
  "scan_context": {
    "started_at": "2026-08-10T20:38:48+00:00Z",
    "ended_at": "2026-08-10T20:38:48+00:00Z",
    "duration_ms": 1,
    "limits": {
      "timeout_ms": 60000,
      "sandbox": true
    },
    "mode": "static-deep"
  },
  "source": {
    "input_type": "file",
    "filename": "overlapping-tensors.safetensors",
    "size_bytes": 2182,
    "hashes": {
      "sha256": "8ed50ec8cdb4027f2f63f46afeeb81233e7919e2463a336452e42515092e20ff"
    }
  },
  "model": {
    "format": "safetensors",
    "arch": null,
    "quantization": null,
    "params_estimate": 448,
    "file_size_bytes": 2182,
    "sha256": "8ed50ec8cdb4027f2f63f46afeeb81233e7919e2463a336452e42515092e20ff",
    "sha512": "b6e2799c983f6f6a553ca30ac76d7901c84108ff9b9c2c3369abaee69af281244c982402c782e4c96c789ae0973789f5b61b8a5bb0291c3d3847a28df3af0efc",
    "kv_meta": {},
    "scanner_model_info": {
      "header_size_bytes": 382,
      "tensor_count": 4,
      "param_estimate": 448,
      "total_bytes_declared": 1792,
      "tensor_bytes_sum": 1792,
      "tensor_delta_bytes": 0,
      "tensor_delta_mb": 0.0,
      "file_size_bytes": 2182,
      "file_size_mb": 0.0,
      "sha256": "8ed50ec8cdb4027f2f63f46afeeb81233e7919e2463a336452e42515092e20ff",
      "sha512": "b6e2799c983f6f6a553ca30ac76d7901c84108ff9b9c2c3369abaee69af281244c982402c782e4c96c789ae0973789f5b61b8a5bb0291c3d3847a28df3af0efc",
      "dtype_histogram": {
        "F32": 4
      },
      "dtype_percentage": {
        "F32": 100.0
      },
      "dtype_stats": {
        "F32": {
          "count": 4,
          "bytes": 1792,
          "mb": 0.0,
          "avg_bits_per_elem": 32.0
        }
      },
      "tensor_preview": [
        {
          "index": 0,
          "name": "token_embd.weight",
          "dims": [
            32,
            8
          ],
          "dtype_name": "F32",
          "offset": 0,
          "byte_len": 1024,
          "bits_per_elem": 32.0
        },
        {
          "index": 1,
          "name": "blk.0.attn_q.weight",
          "dims": [
            8,
            8
          ],
          "dtype_name": "F32",
          "offset": 1024,
          "byte_len": 256,
          "bits_per_elem": 32.0
        },
        {
          "index": 2,
          "name": "blk.0.attn_k.weight",
          "dims": [
            8,
            8
          ],
          "dtype_name": "F32",
          "offset": 1028,
          "byte_len": 256,
          "bits_per_elem": 32.0
        },
        {
          "index": 3,
          "name": "blk.0.attn_v.weight",
          "dims": [
            8,
            8
          ],
          "dtype_name": "F32",
          "offset": 1536,
          "byte_len": 256,
          "bits_per_elem": 32.0
        }
      ],
      "offsets_monotone": true,
      "metadata": {
        "format": "pt"
      },
      "has_metadata": true,
      "unknown_dtypes": [],
      "scalar_tensor_count": 0,
      "overlapping_regions": 1,
      "oob_tensor_count": 0,
      "nan_inf_scan": {
        "performed": true,
        "method": "full",
        "tensors_scanned": 4,
        "total_float_tensors": 4,
        "values_scanned": 448,
        "nan_count": 0,
        "inf_count": 0,
        "affected_tensors": []
      },
      "inferred_arch": null
    },
    "tensor_count": 4,
    "param_estimate": 448,
    "dtype_histogram": {
      "F32": 4
    },
    "has_metadata": true,
    "metadata": {
      "format": "pt"
    },
    "file_size_mb": 0.0,
    "header_size_bytes": 382,
    "tensor_bytes_sum": 1792,
    "tensor_delta_mb": 0.0,
    "offsets_monotone": true,
    "overlapping_regions": 1,
    "oob_tensor_count": 0,
    "dtype_stats": {
      "F32": {
        "count": 4,
        "bytes": 1792,
        "mb": 0.0,
        "avg_bits_per_elem": 32.0
      }
    },
    "tensor_preview": [
      {
        "index": 0,
        "name": "token_embd.weight",
        "dims": [
          32,
          8
        ],
        "dtype_name": "F32",
        "offset": 0,
        "byte_len": 1024,
        "bits_per_elem": 32.0
      },
      {
        "index": 1,
        "name": "blk.0.attn_q.weight",
        "dims": [
          8,
          8
        ],
        "dtype_name": "F32",
        "offset": 1024,
        "byte_len": 256,
        "bits_per_elem": 32.0
      },
      {
        "index": 2,
        "name": "blk.0.attn_k.weight",
        "dims": [
          8,
          8
        ],
        "dtype_name": "F32",
        "offset": 1028,
        "byte_len": 256,
        "bits_per_elem": 32.0
      },
      {
        "index": 3,
        "name": "blk.0.attn_v.weight",
        "dims": [
          8,
          8
        ],
        "dtype_name": "F32",
        "offset": 1536,
        "byte_len": 256,
        "bits_per_elem": 32.0
      }
    ]
  },
  "tokenizer": {},
  "tensors": {
    "count": 4,
    "preview": [
      {
        "index": 0,
        "name": "token_embd.weight",
        "dims": [
          32,
          8
        ],
        "dtype_name": "F32",
        "offset": 0,
        "byte_len": 1024,
        "bits_per_elem": 32.0
      },
      {
        "index": 1,
        "name": "blk.0.attn_q.weight",
        "dims": [
          8,
          8
        ],
        "dtype_name": "F32",
        "offset": 1024,
        "byte_len": 256,
        "bits_per_elem": 32.0
      },
      {
        "index": 2,
        "name": "blk.0.attn_k.weight",
        "dims": [
          8,
          8
        ],
        "dtype_name": "F32",
        "offset": 1028,
        "byte_len": 256,
        "bits_per_elem": 32.0
      },
      {
        "index": 3,
        "name": "blk.0.attn_v.weight",
        "dims": [
          8,
          8
        ],
        "dtype_name": "F32",
        "offset": 1536,
        "byte_len": 256,
        "bits_per_elem": 32.0
      }
    ],
    "dtype_histogram": {
      "F32": 4
    },
    "dtype_stats": {
      "F32": {
        "count": 4,
        "bytes": 1792,
        "mb": 0.0,
        "avg_bits_per_elem": 32.0
      }
    },
    "integrity": {
      "offsets_monotone": true,
      "overlapping_regions": 1,
      "oob_tensor_count": 0,
      "tensor_bytes_sum": 1792,
      "tensor_delta_mb": 0.0,
      "header_size_bytes": 382
    }
  },
  "security": {
    "grade": "D",
    "score": 49,
    "findings": [
      {
        "severity": "CRITICAL",
        "category": "Integrity",
        "title": "Overlapping tensor data regions (1 pairs)",
        "detail": "Pairs: [('blk.0.attn_q.weight', 'blk.0.attn_k.weight')]",
        "recommendation": "Overlapping regions enable aliasing attacks where two tensors share memory; reject this file"
      },
      {
        "severity": "INFO",
        "category": "Precision",
        "title": "Full-precision weights (F32) — not quantized",
        "detail": "All 4 tensors use 32-bit float. Higher numerical fidelity but 2× the memory of F16 and 4-8× of quantized variants.",
        "recommendation": "Consider converting to BF16 or INT8 for production inference if accuracy allows."
      },
      {
        "severity": "LOW",
        "category": "Provenance",
        "title": "Sparse __metadata__: missing author, license, source/model_name",
        "detail": "Embedded metadata has 1 key(s) but lacks: author, license, source/model_name. Without provenance, the model origin cannot be verified from the file alone.",
        "recommendation": "Add author, license, and source fields to __metadata__ when exporting."
      },
      {
        "severity": "INFO",
        "category": "Structure",
        "title": "Dtype breakdown: {'F32': 4}",
        "detail": "4 tensors, ~448 parameters",
        "recommendation": "Verify dtype matches expected model precision"
      },
      {
        "severity": "INFO",
        "category": "Format",
        "title": "Safetensors format provides strong sandboxing",
        "detail": "Unlike pickle-based formats, safetensors cannot execute arbitrary code during loading",
        "recommendation": "Safetensors is the recommended format for sharing model weights safely"
      },
      {
        "severity": "MEDIUM",
        "category": "Memory Alignment",
        "title": "Misaligned tensor data (1 tensor(s))",
        "detail": "Tensors not aligned to 8-byte boundary: ['blk.0.attn_k.weight']. Misalignment can cause SIGBUS on ARM and degrade SIMD performance on x86. Likely indicates manual file editing or a non-standard exporter.",
        "recommendation": "Re-export using the official safetensors library to ensure correct alignment."
      }
    ]
  },
  "compatibility": [
    {
      "runtime": "HuggingFace Transformers",
      "direct_supported": true,
      "arch": true,
      "context": "Native format -- safetensors is the default weight format for HF models."
    },
    {
      "runtime": "vLLM",
      "direct_supported": null,
      "conversion_possible": null,
      "verification_required": true,
      "arch": null,
      "context": "vLLM targets decoder-only LLMs; this architecture may require a custom backend."
    },
    {
      "runtime": "llama.cpp",
      "direct_supported": false,
      "conversion_possible": true,
      "arch": false,
      "context": "Requires GGUF conversion. Use convert_hf_to_gguf.py from the llama.cpp repository."
    },
    {
      "runtime": "ONNX Runtime",
      "direct_supported": false,
      "conversion_possible": true,
      "arch": null,
      "context": "Requires ONNX export (e.g., optimum-cli export onnx or torch.onnx.export)."
    }
  ],
  "report": {
    "summary": "Safetensors unknown arch | F32 | 4 tensors | ~0M params | 0 MB | 1 blocking issue / 2 warnings / 3 informational",
    "bullets": [
      "Safetensors unknown arch | F32 | 4 tensors | ~0M params | 0 MB | 1 blocking issue / 2 warnings / 3 informational",
      "SHA256: 8ed50ec8cdb4027f..."
    ],
    "recommendations": [
      "Overlapping regions enable aliasing attacks where two tensors share memory; reject this file",
      "Re-export using the official safetensors library to ensure correct alignment.",
      "Add author, license, and source fields to __metadata__ when exporting."
    ]
  }
}