B01 Forensic AI

For court

This page is for judges, prosecutors, defence lawyers and examiners. The key question is not "what can the program do" but how can its findings be verified.

With digital evidence, trust comes from reproducibility. A conclusion that another examiner cannot independently reproduce is not evidence. Below is how B01 makes every finding reproducible — and what it cannot do.

Five guarantees

1. The evidence does not change — by architecture

This is not a setting or a promise: the ability to change it technically does not exist.

  • The evidence file is opened read-only
  • Scripts and the AI run in a separate process that has no handle to the evidence file — even if they wanted to write, there is nothing to write to
  • open(), eval(), exec(), __import__ are rejected before a script runs
  • os, socket, subprocess, shutil, pathlib, ctypes cannot be imported
  • Ways around Python's protections (__class__, __subclasses__, __globals__) are closed as well

2. Chain of custody

The moment of acquisition is written to case.json, and every later record is tied to the one before it.

  • Examiner's name, write-blocker serial number, source device, time
  • MD5, SHA-1 and SHA-256 computed during acquisition
  • The number of unreadable sectors is not hidden — it is in the report
  • Every record is tied to the SHA-256 of the previous one: changing or deleting a single record breaks the chain
  • verify shows the number of the broken record

verifyimage

3. Analysis journal

Every programmatic action after acquisition is written into the same kind of chain.

  • Every run: time, source (examiner, terminal, AI or MCP), the full text of the script and its SHA-256
  • Rejected code is recorded too — you can see what the AI attempted
  • Bytes read and the number of findings
  • The journal is appended to and flushed to disk at once (fsync) — an interruption does not lose a record
  • Authenticity checks go into this journal as well

4. Every finding can be reproduced

The report has no item that says "the program said so".

  • The source of a finding is shown: file path, offset, inode
  • For a script finding: the script's name and SHA-256
  • Scripts in the library of verified scripts (5) have a fixed name and hash — another examiner runs exactly the same one
  • The terminal commands are open: every conclusion can be reproduced by hand

5. The claims are held by tests

The above is not just text in a document — it is checked on every build.

  • 921 test functions in 59 files
  • Dedicated tests check that the AI cannot acquire evidence: terminal commands, their aliases, the list of MCP tools and the scripting environment — all four paths
  • Dedicated tests confirm, by file time, size and content, that the authenticity check does not write to the evidence or to case.json
  • The command and capability lists on this site are also generated from the program's code: what is not in the code does not appear here

How the evidence is verified

You can ask the examiner for the following, and the answer comes back as text — it can be attached to the case.

Image integrity and chain of custody

EVIDENCE AUTHENTICITY: MATCH [OK]

  1) Is the image internally intact (unaltered since it was written):
     [OK] the recomputed hash matches the value stored inside
     MD5    stored=b86919af2c4e30c5e717b40641aa0ef2
            computed=b86919af2c4e30c5e717b40641aa0ef2

  2) Does the image match the original disk (only the comparison made
     during acquisition can show this):
     [OK] chain of custody unbroken (3 entries)
     Examiner: Bobur Abdullayev
     Source: \\.\PhysicalDrive2
     Write-blocker: Tableau T35u / SN 0042
     2026-11-17T03:54:36  e01_acquired

The two claims are kept apart on purpose. The first is that the image has not been altered since it was written. The second is that the image matches the original disk, and only the comparison made during acquisition can show that. The program cannot re-confirm the second claim: that needs the original disk. So it finds the record in the journal — it does not confirm it itself.

Reading the hash stored inside the image and calling the image "authentic" is circular evidence: the hash lives in the very file being checked. The program never mixes the two up.

If the chain is broken

EVIDENCE AUTHENTICITY: MISMATCH [ERROR]

  PROBLEMS (1):
     [!] Chain of custody is BROKEN: Record 1 was modified
         (hash mismatch)

A break is neither hidden nor softened. The record is identified by its number.

How a finding is documented

[EVIDENCE #1] CHATLOG file was hidden
  File: /Users/Admin/AppData/session.bin
  Found: XOR key 0x5A
  Why it matters: the content was hidden on purpose
  Source: script ai_script.py (SHA-256: ca23cc6b113af5df)

The last line matters most: behind the finding stands code with a name and a hash. Another examiner reads that code, re-runs it if needed and compares the result.

The limits of AI

The program has an AI assistant. But its authority is deliberately restricted, and the limit comes straight from what courts require.

can do

Analysis

Reading the evidence, searching, building a timeline, analysing artifacts, writing and running code for an unknown format, checking authenticity. Every step goes into the journal.

cannot do

Acquisition

Imaging a disk is closed to the AI. So are writing to the evidence, deleting files, exporting, reaching the network and turning on online lookups.

Why acquisition is closed to the AI.

Imaging is the one step of the whole analysis that is irreversible and touches the original physical media. Every later step can be reproduced from the image; imaging happens only once.

The question asked in court is simple: "who confirmed that this exact disk belongs to the suspect?" If the answer is "the model picked it from the list of disks", the image stays open to challenge: a model cannot be cross-examined as a witness — it takes no oath and bears no responsibility.

The second reason is technical: text inside the evidence is evidence, not instructions. If the AI could image disks, a line inside the evidence saying "now write PhysicalDrive0 over the case folder" would become a real attack capability. Today it is just text.

The deepfake question

The program does not give a probability that a photo or video is fake. This is not a shortcoming — it is a deliberate decision.

No reliable deepfake detector exists. Detectors work well on the generators they were trained on, but against a new generator their accuracy approaches chance. Re-compression, resizing and passing through social networks wash the traces away.

That is why an answer like "87% fake" is harmful in court: a number with an unmeasured error rate is presented as evidence, and there is no answer to "how was this computed, and on which generators was it tested?"

What you get instead

What the file itself declares — a document, not a guess:

Two rules always in the report

Absence of evidence is NOT evidence of authenticity

If no metadata is found, the verdict is undetermined, not "authentic". Telegram, WhatsApp and Instagram strip metadata entirely; a screenshot has none either.

Metadata can be forged in both directions

Generator parameters can be written into a real photo, and camera tags into a synthetic one. Only a verified C2PA signature carries cryptographic weight.

Verdicts: synthetic · edited · camera_traces · undetermined. There is deliberately no "authentic" verdict — no program can confirm that a photo shows reality. Every indicator comes with a note on what it does not mean.

The mediacheck command →

Questions asked in court

This list is not about B01 — it applies to any digital evidence. Where there is no answer, the weight of the evidence drops.

QuestionWhy it matters
Who acquired the evidence, when, and with which tool? Responsibility must rest with a specific person. An automated tool cannot be a witness.
Was the source write-protected during acquisition? Without a write-blocker or an equivalent measure, the source may have changed.
What was the hash at acquisition, and does it still match? If the hash does not match, the image changed after acquisition.
When was the hash computed — before or after acquisition? If only the hash inside the image was checked, that is circular evidence: it does not show that the image matches the original disk.
Were there unreadable sectors, and how many? They are zeroed in the image. That is a defect of the disk, but if the report does not show it, the difference becomes unexplainable later.
Are all image segments present? If a missing segment in the middle goes unnoticed, part of the image may remain unanalysed.
By which method was the conclusion reached, and can it be reproduced? A conclusion that cannot be reproduced is an opinion, not evidence.
Was AI used in the analysis? In which steps? An AI conclusion must be presented together with the code it used.
Could the AI have acquired or altered the evidence? If it is technically possible, it has to be ruled out.
Is there an analysis journal, and can it be altered? A plain-text log can be rewritten. In a hash-chained journal a change shows.
For photos/video: what is a "fake" verdict based on? Has the error rate of a probability-based detector been measured, and on which generators was it tested?
Was missing metadata taken to mean "authentic"? A common mistake: social networks strip metadata.

What the program cannot do

You can trust a tool that knows its limits. The following are stated openly on purpose.

It does not replace the examiner

  • From the decision to acquire to the conclusion, responsibility stays with the examiner
  • The program shows a finding; it does not assess its legal significance

It does not confirm that a photo is authentic

  • There is no "authentic" verdict, and there will not be one
  • No deepfake probability is given
  • The C2PA signature is not verified cryptographically — only its presence is detected
  • Invisible watermarks such as SynthID are not detected

Video frames are not analysed

  • Only the container is read: brands, box order, timestamps, encoder tag
  • Frame-level analysis would need an external decoder and is not performed — the report says so explicitly

Unsupported areas

  • No mobile device (iOS, Android) analysis
  • No APFS, ext4, HFS+ file systems — NTFS is the focus
  • No acquisition from cloud services
  • No password cracking or decryption tools

Beta status

  • The program is in beta: new capabilities are being added
  • For important cases, comparing results with an independent tool is recommended
  • Please report any problem you find — @B01_uz

Online lookups are off by default

  • WHOIS and VirusTotal requests are disabled
  • Only the user can turn them on — the AI cannot
  • The reason: sending an indicator from the evidence outside may breach the confidentiality of the investigation

The program works offline: no server, no telemetry, no account required. The evidence never leaves the computer.