Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

I built a 100% local invoice reader with Ollama + n8n — the real trick was teaching it NOT to guess

I'm not a professional developer — I run a small business and I'm self-taught (HTML/CSS/JS, a bit of Python). Every month I had the same chore: a pile of PDF invoices and me copying supplier, date, concept and total into a spreadsheet by h…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

I'm not a professional developer — I run a small business and I'm self-taught (HTML/CSS/JS, a bit of Python). Every month I had the same chore: a pile of PDF invoices and me copying supplier, date, concept and total into a spreadsheet by hand. Boring, and full of typos.



I automated it with n8n, but with two hard rules:





  • Invoices never leave my computer. They're supplier and business data — I didn't want to push them to any cloud API.


  • No monthly subscription per model call.



So I ran it on Ollama locally (qwen2.5-coder:7b) instead of a paid API. It works on a normal laptop — a Ryzen 7, 16 GB RAM, no pro GPU — at ~12 s per invoice and €0 cost per run.



The flow is 7 nodes: a trigger (Gmail label "Invoices" in production) → a Code node with 3 sample invoices embedded so anyone can test it with zero setup → an HTTP Request to Ollama asking for JSON (supplier, date, concept, total) → a classifier → a summary → a Telegram ping → a slot to dump into Google Sheets.






The part that actually mattered



At first the model invented data when an invoice was blurry or badly scanned — a disaster for accounting. The fix was to ask the prompt for an extra confidence field (0 to 1) and add one simple rule:




if confidence >= 0.8 AND supplier AND total  ->  OK
else -> REVIEW






Now dubious invoices don't slip through: they're flagged and I check them in 10 seconds. I'd rather that than a silent €300 error. The prompt uses temperature: 0 and format: json so it doesn't ramble.






A few gotchas that cost me time




  • If n8n runs in Docker, the Ollama node must point to http://host.docker.internal:11434, not localhost — that's the classic "connection refused".

  • The first invoice is much slower (~1 min on my laptop) because Ollama loads the model into memory the first time. From the second one it's ~8–10 s. First one is the toll, then it flies.

  • If everything comes back "REVIEW", your confidence threshold is too high — drop it to 0.6.

  • If the PDF is a scan with no text layer, the model gets nothing — you need an OCR step first.






Two questions for anyone who's done this




  • How do you handle the "REVIEW" bucket — a second pass with another model, or straight to human review like me?

  • For production: Gmail Trigger, a watched folder, or a webhook?



Happy to share the full workflow JSON if it's useful. Any critique welcome — I'm more bar-counter than code. 🙂

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - I built a 100% local invoice reader with Ollama + n8n — the real trick was teaching it NOT to guess
id: 18c4d5d4-27c7-4017-8c1f-44dd2bd72108
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-26
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-26"
        description = "YARA Signature for "
    strings:
        $str = "I built a 100% local invoice r" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("I built a 100 local invoice reader with ")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*I built a 100 local invoice reader with *"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "I built a 100 local invoice reader with "
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich I built a 100% local invoice reader with.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built a 100% local invoice reader with Ollama + n8n — the real trick was teaching it NOT to guess

Thematisch verwandte Begriffe: built, local, invoice, reader · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100503 | Ghidra versions through 12.1.4 contain a heap use-after-free vulnerabil…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag