Skip to main content

reconformal

PyPI version Python Version License: MIT

Forensic event reconstruction and relationship analysis for SADFC-style footprint data.

This project provides a DataFrame-first pipeline to:

  • Filter and preprocess forensic footprint data,
  • Extract subjects, objects, and events,
  • Build support and entity-event relationships,
  • Compute event correlations over time,
  • Analyze and visualize inferred timelines.

Features

  • Data ingestion and filtering from Plaso CSV files
  • Entity extraction for common event types (web visit, process creation, search activity, file activity)
  • Relationship modeling:
    • Footprint-to-entity/event support
    • Participation (subject-event)
    • Usage (event-object)
  • Temporal and contextual correlation scoring
  • Timeline filtering based on type-level correlation statistics
  • Built-in timeline plotting with Matplotlib

Installation

From PyPI

Install the package directly from PyPI (once published):

bash pip install reconformal

From source (local development)

bash git clone https://github.com/forensic-timeline/reconformal cd reconformal pip install -e .

Via Docker (No Python Required)

Build the image locally from the repository root:

bash git clone https://github.com/forensic-timeline/reconformal cd reconformal docker build -t reconformal .

Run by mounting your input CSV files and an output directory:

bash docker run --rm \ -v /path/to/your/csv/files:/data/input:ro \ -v /path/to/your/output:/data/output \ reconformal \ --input-dir /data/input --output-dir /data/output --threshold 0.0

Or with Docker Compose — place your CSV files in ./data/input/ and run:

bash docker compose up

Results will appear in ./data/output/.

Requirements

  • Python 3.9+
  • pandas >= 1.5
  • matplotlib >= 3.6

Quick Start

The easiest way to use the library is via the un_pipeline function mapping, which automates file reading and DataFrame generation.

`python from reconformal import run_pipeline

Run the complete reconstruction pipeline

outputs = run_pipeline( input_dir="./data", output_dir="./outputs", threshold=0.0, draw_graph=True, graph_filename="filtered_timeline.png" )

Access individual generated datasets

timeline_df = outputs['timeline_df'] correlation_df = outputs['correlation_df'] print("Generated Timeline Records:", len(timeline_df)) `

Advanced Usage (Step-by-step)

If you need finer execution control, you can import individual modules: `python from reconformal import DataProcessor, TimelineReconstruction, RelationshipAnalysis from reconformal.reconformal import KnowledgeRepresentation

1) Load and filter footprints

processor = DataProcessor(file_dir="./data") combined_df = processor.process_files()

2) Build knowledge representation

kr = KnowledgeRepresentation(combined_df) kr.sort_data() kr.extract_entities()

3) Reconstruct timeline and compute correlations

timeline_builder = TimelineReconstruction(kr) timeline_df = timeline_builder.reconstruct_timeline() correlation_df = timeline_builder.calculate_correlation(timeline_df)

4) Analyze timeline quality

analysis = RelationshipAnalysis(kr) scored_timeline_df = analysis.filter_events_based_on_avg_correlation( correlation_df=correlation_df, timeline_df=timeline_df, threshold=0.0, ) updated_timeline_df = analysis.update_timeline_df(scored_timeline_df) `

CLI Usage

After installation, run from PowerShell or any shell:

bash reconformal --input-dir ./data --output-dir ./outputs --threshold 0.0 --draw-graph

You can also run as a Python module:

bash python -m reconformal --input-dir ./data --output-dir ./outputs

Generated outputs are written as CSV files, including timeline, correlation, relationship, summary, and metrics artifacts.

Main Components

  • DataProcessor: Reads CSV files from a directory and combines valid forensic evidence.
  • PlasoToFootprint: Processes and detects appropriate browser/system entities based on Plaso evidence definitions.
  • EntityExtractor: Converts footprint rows into normalized subject/object/event records.
  • RelationshipManager: Deduplicates entities and builds relationship tables.
  • TimelineReconstruction: Builds deduplicated timeline and computes pairwise correlations.
  • RelationshipAnalysis: Aggregates correlation scores, filters events, enriches timeline, and plots results.

Data Assumptions

Input footprint data is expected to include fields commonly used by the pipeline from Plaso CSVs:

  • parser
  • message
  • display_name
  • datetime
  • filename

Project Structure

reconformal/reconformal.py - Core implementation and pipeline

reconformal/main.py - Module execution entry point

reconformal/init.py - Package exports

  • pyproject.toml - Packaging metadata and console scripts
  • ests/ - Unit tests for package modules
  • docs/ - Sphinx documentation files
  • README.md - Project documentation
  • LICENSE - MIT license

License

MIT License. See LICENSE.

Contributing

Contributions are welcome. Recommended workflow:

  1. Open an issue describing the change.
  2. Create a feature branch.
  3. Add tests and documentation updates.
  4. Submit a pull request.

Metadata

Release files for reconformal 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reconformal 0.2.0
File Size Uploaded Provenance Actions
reconformal-0.2.0.tar.gz 23.1 kB With provenance Details for reconformal-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reconformal 0.2.0
File Interpreter ABI Platform Actions
reconformal-0.2.0-py3-none-any.whl Python 3 none any Details for reconformal-0.2.0-py3-none-any.whl

Total release size: 41.4 kB

Release files / reconformal-0.2.0.tar.gz

Download URL reconformal-0.2.0.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3400ebb85b61eb8cf306ecd64de0983c0ec922354e3096139a81f65cc9be6902
BLAKE2b-256 checksum
How to use checksums
09c6e488b9a7c829539c434644912c55b0d4ee5a1035cc9fda0916b5e01214fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Release files / reconformal-0.2.0-py3-none-any.whl

Download URL reconformal-0.2.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78784ab896016e15a6bb87f0cfed784430dac2c8317bddf81d2c95bc886f28f4
BLAKE2b-256 checksum
How to use checksums
c5db4f2b7f802307e689f4b83b2981e53a4453d2b14aa91ae74dbdba69104570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Security for reconformal 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for reconformal-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page