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

Custom Functions FTW

CsvPath Validation Language is functions-based. It applies a very simple syntax and a large number of functions to validate CSV, JSONL, and Excel files in ways that were never-before possible. And then comes the moment when you want to do…

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

CsvPath Validation Language is functions-based. It applies a very simple syntax and a large number of functions to validate CSV, JSONL, and Excel files in ways that were never-before possible.



And then comes the moment when you want to do some crazy thing that the CsvPath Framework contributors didn't think of. What to do? You create a custom function that does exactly that.



Custom functions even work in FlightPath Data and FlightPath Server. I call that out because FlightPath Data is a multi-project environment. And FlightPath Server is both multi-project and also multi-user. That means functions must be scoped and sandboxed. They are and they work great!



Let's create a trivial example to show the setup of a custom function. I'll leave the actual functionality as an exercise for the reader, since that part is demonstrated copiously in the CsvPath Framework Github repo.






The goal



Our goal is to create a function called sure(). It will functionally be the same as yes(). I.e. it returns True.



Our csvpath statement will be:




    $[*][ sure() ]






If you try that in FlightPath Data you will get this error message:








The config.ini



The first step is to point to a functions import file. By default, import files are called functions.imports and live in the project's config directory. In FlightPath Data, click Open config at the bottom left of the app to open the config panel. Then click functions in the vertical tabs to open the functions config form. The form has just one field for the path to the imports file. The path can be relative or absolute.





Once the path is ready click Save and reload and then Close config.



Next we need to edit the imports file to include our sure() function. Right click on the blank space in the project files tree and select Open project directory.





Open the config directory and you should see three files, config.ini, env.json, and functions.imports. If you don't see all three don't worry about it; some files are generated just in time. If there is no functions.imports create one. Then open it.



In functions.imports we're going to add one line that imports our sure() function.





This is basically the same form as Python's. It says find the example/one/yes.py file and import the Yes class, using the name sure as the function name of the imported class. Simple!



Finally we just need to put the custom function in the right place. The right place, starting from the project's home directory, is config/example/one/yes.py.



I copied the regular Yes class from its file in the repo to make my example yes.py. Again, we're just setting up a custom function, not showing how to write an awesome function.





This is where the yes.py file lives.





And... we're basically ready to go. However, if you ran a csvpath already, restart FlightPath to clear the function classes that were already loaded. You can do this programmatically in CsvPath Framework, but there's no button in FlightPath's config yet.



That done, back in FlightPath Data right click in your project files tree and create a new file. Call it test.csvpaths, or whatever you like.



In it, paste our test csvpath:




    $[*][ sure() ]






Make it look like:





Now, with your cursor inside the csvpath statement, click cmd-r (or ctrl-r on Windows).



You should see the message Test run complete. Matched 2 lines. in the status bar and the printouts tab should be blank. (If your status bar says Test run complete but has a different number of lines don't worry about it; your test data and mine just aren't the same).



For a bit of comfort that all is working as expected, add a print line like this and you should get the same printouts shown.





And that's all there is to it. Now you'll never be stumped by the absence of Cool Function X, because you can write it yourself.



To be fair, though, while a simple function can be trivial, as we just saw, more complex functions can be... well, more complex. If you need help creating your awesome function don't hesitate to reach out. We'll be glad to help you get started.

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - Custom Functions FTW
id: ebdb335a-d6ed-4f4c-8a87-57cd285d6a15
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-27
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-27"
        description = "YARA Signature for "
    strings:
        $str = "Custom Functions FTW" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Custom Functions FTW")
| 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: "*Custom Functions FTW*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Custom Functions FTW"
| 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

🎯
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:

Analyse für identifizierte Bedrohung auf Basis von Live-CTI (ENISA EUVD): CVSS 0.0 · EPSS 0.0% · CISA KEV: nein. Handlungsableitung aus den verlinkten Hersteller-Quellen.

🛡️ 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.
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Custom Functions FTW

Thematisch verwandte Begriffe: Custom, Functions · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100620 | Capgo CLI (npm package @capgo/cli) through 7.98.2 is affected by an ove…
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