Skip to content

๐Ÿ”ฎ simulacra - Part of the Baudrillard Suite

License

Notifications You must be signed in to change notification settings

bad-antics/simulacra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โ—ˆ SIMULACRA

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—      โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— 
โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•šโ•โ•     โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•
process ontological rootkit

DETECTING COPIES WITHOUT ORIGINALS

Ontological process verification โ€ข Genealogical tracing โ€ข Temporal drift analysis โ€ข Order classification


โ—ˆ CONCEPT

Baudrillard argued that in hyperreality, the distinction between original and copy becomes meaninglessโ€”there are only simulacra: copies without originals. In computing, this manifests as processes that shouldn't exist. Rootkits, injected code, hijacked threadsโ€”all are simulacra.

simulacra performs ontological analysis on running processes. It doesn't just ask "is this process malicious?" It asks "does this process have a right to exist?"

"The simulacrum is never what hides the truthโ€”it is truth that hides the fact that there is none."


โ—ˆ ORDERS OF SIMULACRA

Baudrillard defined four orders of simulacra. We apply them to process analysis:

Order Description Computing Equivalent
1st Order Faithful copy of reality Legitimate process, proper chain
2nd Order Copy that masks reality Process hiding its true purpose
3rd Order Copy with no original Injected code, hijacked thread
4th Order Fractal, self-referential Self-modifying malware, AI payloads

โ—ˆ ANALYSIS METHODS

โ–ธ GENEALOGICAL TRACING

Every legitimate process has a birth story. simulacra traces this lineage:

from simulacra import ProcessAnalyzer

analyzer = ProcessAnalyzer()

# Trace genealogy of a process
genealogy = analyzer.trace_genealogy(pid=3847)

print(f"Process: {genealogy.name}")
print(f"Parent chain: {' โ†’ '.join(genealogy.ancestors)}")
print(f"Birth method: {genealogy.spawn_method}")
print(f"Legitimacy: {genealogy.legitimacy_score}%")

if genealogy.paradox_detected:
    print(f"โš ๏ธ PARADOX: {genealogy.paradox_description}")

โ–ธ ONTOLOGICAL SCANNING

Full system scan questioning the existence of every process:

from simulacra import OntologicalScanner

scanner = OntologicalScanner()

# Question reality
async for result in scanner.question_reality():
    if result.order > 1:
        print(f"โ–ธ {result.pid} โ€บ {result.name}")
        print(f"  Order: {result.order} ({result.order_name})")
        print(f"  Authenticity: {result.authenticity}%")
        print(f"  Drift: {result.temporal_drift}")

โ–ธ TEMPORAL DRIFT ANALYSIS

Processes exist in time. Their timestamps should be consistent. simulacra detects temporal violations:

from simulacra import TemporalAnalyzer

temporal = TemporalAnalyzer()

anomalies = temporal.detect_drift()

for a in anomalies:
    print(f"โ–ธ PID {a.pid}: {a.name}")
    print(f"  Expected start: {a.expected_start}")
    print(f"  Actual start: {a.actual_start}")
    print(f"  Drift: {a.drift_seconds}s")
    print(f"  Explanation: {a.explanation}")

โ–ธ MEMORY AUTHENTICITY

Compare process memory against known-good binaries:

from simulacra import MemoryVerifier

verifier = MemoryVerifier()

for process in verifier.scan_all():
    if process.modified_sections:
        print(f"โ–ธ {process.name} [{process.pid}]")
        for section in process.modified_sections:
            print(f"  Section: {section.name}")
            print(f"  Expected hash: {section.expected_hash[:16]}...")
            print(f"  Actual hash: {section.actual_hash[:16]}...")
            print(f"  Modification: {section.modification_type}")

โ—ˆ SAMPLE OUTPUT

โ—ˆ SIMULACRA v2.0 โ€บ ONTOLOGICAL SCAN
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

QUESTIONING REALITY...

โ–ธ PID 1 โ€บ systemd
  Order: 1st (AUTHENTIC)
  Genealogy: GENESIS (init)
  Authenticity โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 100%
  Drift: NONE

โ–ธ PID 847 โ€บ sshd
  Order: 1st (AUTHENTIC)
  Genealogy: systemd โ†’ sshd
  Authenticity โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 99%
  Drift: NONE

โ–ธ PID 2341 โ€บ nginx
  Order: 2nd (MASKED)
  Genealogy: systemd โ†’ nginx
  Authenticity โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘ 78%
  Drift: LOW
  Note: Memory section .text differs from binary

โ–ธ PID 3392 โ€บ kworker/0:1  โš ๏ธ ALERT
  Order: 3rd (SIMULACRUM)
  Genealogy: PARADOX
  Authenticity โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 31%
  Parent PID 2 never spawned this thread
  Temporal anomaly: Start time predates parent
  ROOTKIT PROBABILITY: HIGH

โ–ธ PID 4501 โ€บ chrome-helper
  Order: 4th (FRACTAL)
  Genealogy: chrome โ†’ helper (self-spawned recursively)
  Authenticity โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘ 82%
  Self-reference detected in memory
  Pattern: Benign (browser behavior)

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
PROCESSES: 247 โ€ข AUTHENTIC: 243 โ€ข SIMULACRA: 3 โ€ข ALERT: 1
REALITY INTEGRITY: 98.8%

โ—ˆ DESKTOP APPLICATION

Native Tauri app with:

  • Real-time process tree visualization
  • Authenticity heat map
  • Genealogy graph explorer
  • Alert notifications
  • Historical analysis

โ—ˆ INTEGRATION

With hyperreal

Deep memory forensics on suspicious processes:

from simulacra import OntologicalScanner
from hyperreal import MemoryForensics

scanner = OntologicalScanner()
forensics = MemoryForensics()

for process in scanner.question_reality():
    if process.order >= 3:
        # Deep analysis
        deep = await forensics.analyze(process.pid)
        print(f"Palimpsest layers: {deep.palimpsest_count}")
        print(f"Hidden code: {deep.hidden_code_detected}")

With cool-memories

Immutable logging of detections:

from simulacra import OntologicalScanner
from cool_memories import ImmutableLog

log = ImmutableLog()
scanner = OntologicalScanner()

async for detection in scanner.question_reality():
    if detection.order >= 2:
        await log.record(
            event_type="simulacrum_detected",
            data=detection.to_dict(),
            severity="high" if detection.order >= 3 else "medium"
        )

โ—ˆ INSTALLATION

pip install baudrillard-simulacra

# Desktop app
cd apps/simulacra-desktop
npm install && npm run tauri build

"The map precedes the territoryโ€”sometimes the process precedes itself."

BAUDRILLARD SUITE