Skip to main content

reconsadfc

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 CSV files (source == WEBHIST)
  • 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

After publishing, install with:

pip install reconsadfc

From source (local development)

git clone <your-repository-url>
cd temp-reconformal
pip install -e .

Requirements

  • Python 3.9+
  • pandas
  • matplotlib

Quick Start

from reconformal import (
		DataProcessor,
		KnowledgeRepresentation,
		TimelineReconstruction,
		RelationshipAnalysis,
)

# 1) Load and filter footprints
processor = DataProcessor(file_dir="./data", save_json=False)
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)

# Optional plot
analysis.draw_timeline_graph(updated_timeline_df)

# Optional metrics
counts = analysis.count_classification_groups(updated_timeline_df)
print(counts)

CLI Usage

After installation, run from PowerShell or any shell:

reconformal-cli --input-dir .\data --output-dir .\outputs --threshold 0.0 --draw-graph

You can also run as a Python module:

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
    • Filters rows where source is WEBHIST
  • EntityExtractor
    • Converts footprint rows into normalized subject/object/event records
  • RelationshipManager
    • Deduplicates entities and builds relationship tables
  • KnowledgeRepresentation
    • Orchestrates extraction and stores all derived DataFrames
  • 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, such as:

  • id
  • type
  • source
  • date_time_min
  • optional event metadata (for example keys, plugin, files, filename)

PyPI Publishing Checklist

Before publishing, ensure you have:

  1. Package metadata configured (pyproject.toml preferred).
  2. This README referenced as the long description.
  3. Version bumped correctly.
  4. License file included.
  5. Source distribution and wheel built successfully.

Typical commands:

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

Project Structure

Current minimal structure:

  • reconformal/reconformal.py - core implementation
  • reconformal/cli.py - CLI parser and command runner
  • reconformal/__main__.py - module execution entry point
  • reconformal/__init__.py - package exports
  • pyproject.toml - packaging metadata and console scripts
  • README.md - project documentation
  • LICENSE - MIT license
  • fer-sadfc.ipynb - notebook exploration

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 reconsadfc 0.1.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 reconsadfc 0.1.0
File Size Uploaded Provenance Actions
reconsadfc-0.1.0.tar.gz 22.7 kB With provenance Details for reconsadfc-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 40.7 kB

Release files / reconsadfc-0.1.0.tar.gz

Download URL reconsadfc-0.1.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
052cfdf1c7a7e342d1edb4a9ac13d37a625bfe9003a84bbb8fcc052923f0b7b5
BLAKE2b-256 checksum
How to use checksums
29960b5ccf95e5dabaf4c1b072ad7bfd4507b3a5fdf9d8716928c5c62ea9dcbe
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 Apr 25, 2026.

Transparency log

Release files / reconsadfc-0.1.0-py3-none-any.whl

Download URL reconsadfc-0.1.0-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d6d9cf5ee1758648b04cef4f70bad10b2b35cfbb84e6a9035d4eb3d69eda965
BLAKE2b-256 checksum
How to use checksums
1fd314e5a1d59a660938a75cc2e01fa7b4027c3d218bfa051b5679008a877cb5
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 Apr 25, 2026.

Transparency log

Security for reconsadfc 0.1.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 reconsadfc-0.1.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 Apr 25, 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.1.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