Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGolemDE: Leben als IT-Freiberufler – zwei Perspektiven(24.09.2026 um 07:03 Uhr)
Sichere ProgrammierungOpenChamber 2.0: Skills ändern, Agent läuft weiter(24.09.2026 um 09:04 Uhr)
Sichere ProgrammierungBuilding Enterprise dApps with Smart Contracts and REST APIs(21.09.2026 um 11:34 Uhr)
Sichere ProgrammierungJavaScript Array Methods: 7 Essential Methods Every Developer Needs(24.09.2026 um 08:51 Uhr)
Sichere ProgrammierungCross-Chain Bridge Risk Assessment: Gauntlet(24.09.2026 um 08:53 Uhr)
Sichere ProgrammierungWe spent thirteen weeks about to buy a bigger database(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungHow to Choose a CDN for Asia in 2026: 7 Providers Compared(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungMy deploy said Success. It went to a URL nobody visits.(24.09.2026 um 09:00 Uhr)
YouTube Security VideosGolemDE: Leben als IT-Freiberufler – zwei Perspektiven(24.09.2026 um 07:03 Uhr)
Sichere ProgrammierungOpenChamber 2.0: Skills ändern, Agent läuft weiter(24.09.2026 um 09:04 Uhr)
Sichere ProgrammierungBuilding Enterprise dApps with Smart Contracts and REST APIs(21.09.2026 um 11:34 Uhr)
Sichere ProgrammierungJavaScript Array Methods: 7 Essential Methods Every Developer Needs(24.09.2026 um 08:51 Uhr)
Sichere ProgrammierungCross-Chain Bridge Risk Assessment: Gauntlet(24.09.2026 um 08:53 Uhr)
Sichere ProgrammierungWe spent thirteen weeks about to buy a bigger database(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungHow to Choose a CDN for Asia in 2026: 7 Providers Compared(24.09.2026 um 08:54 Uhr)
Sichere ProgrammierungMy deploy said Success. It went to a URL nobody visits.(24.09.2026 um 09:00 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

DevLog 20250724: C# Scripting, Pure 2, Updated + Some Recap

Intro Pure has been our in-house C# scripting solution for a few years now. After experimenting with the well-known CS-Script and some other solutions I can no longer recall, I began experimenting with Roslyn in .NET around 2022/2023,…

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




Intro



Pure has been our in-house C# scripting solution for a few years now.


After experimenting with the well-known CS-Script and some other solutions I can no longer recall, I began experimenting with Roslyn in .NET around 2022/2023, and it's been working well ever since.






Recap



Version 0.0.3



v0.0.3



The first version of Pure was just a simple wrapper around Roslyn. Later, we expanded it to support syntax like Import(MathNet.Numerics). It wasn't until we added native libraries like CSV, ODBC, and CentralSnippets that things started to get interesting.






Motivation



Below is an old table I compiled when first drafting the design document for Pure (1), with some updates to mention newer solutions:
































































Platform Installation Size Stability Package Management/Functionalities Summary
Pure (Original) Requires .NET 8 (ASP.NET) Runtime; distributable is around 100MB C# .NET 8-based, likely never to change, very stable (depends on underlying C#); very few new language constructs. Easily migratable to proper C#. Zero-hassle package management and functionality import; single-file throughout. Provides the most efficient short-snippet authoring capabilities.
C# Proper development with an IDE (Visual Studio or IntelliJ) takes forever to install. Very stable as long as one avoids GUI-heavy setups. Many button clicks (in IDE) or commands or .csproj modifications required to install packages. Self-contained dependency environment; fast and lightweight. Best for strongly typed and highly articulated solutions.
Python Too many versions. Fairly stable. Package management is troublesome; messy distributable/end-script environments. Lacks advanced language constructs; ubiquitous support.
PowerShell Super easy to install and use. Fairly stable. Batteries included, and generally a bad idea to import additional unofficial functionalities. Good for process automation; syntax not suited for efficient OOP programming.
Perl Super lightweight and fast. (PENDING) (PENDING) (PENDING)
Pure 2 300MB (Pending) POS-compliant. Preferable if you want easier version control, a text-based scripting experience, and a close-to-C# feel.
Divooka 500MB (Pending) Battery-packed for everyday use. All you need for daily scripting.





What's Special



Pure 2 is a lightweight C# scripting platform with modern C# 12 syntax and easy NuGet import support. Pure is based on Roslyn. In addition to the base .NET runtime, Pure offers additional libraries for handling common tasks, along with a handy scripting interface (REPL and Notebook) and a place where people can share their snippets.



Pure 2 is conceptually similar to Pure but architecturally very different - it directly builds upon Parcel NExT's Ama runtime (the same runtime used by Divooka). Pure is designed for very short snippets and getting everyday tasks done faster.



Pure 2 uses C# 12 and is similar to top-level statements in C#, with the following features:




  1. You can define types and functions anywhere in the middle of the script.

  2. Pure has its own package import behavior (default namespace usage and package lookup rules).

  3. Default global scope math functions, and default using for System.IO and System.Linq.

  4. Top-level function and variable definitions, alongside classes and other common C# constructs.

  5. Simplifies common tasks even further.

  6. Macros to support text-based parsing, file inclusion, and module imports.






Features




  • Single-word standard package names. One-command NuGet package import and on-the-fly package invocation (through Import).

  • Full compatibility with Divooka packages and Divooka graphs.

  • Pure uses PUREPATH to search for scripts when using Include and when executing script files directly from the command line as the first argument.

  • Pure is very lightweight and will always be a thin layer on top of Roslyn/.NET runtime.

  • CLI REPL; GUI Notebook.






Basic Syntax



Certain macros/syntax are provided to implement language-level scripting constructs:

































Macro/Syntax Function Remark
Import() Import modules from PATH, and automatically download packages from NuGet Must be on its own line
Include() Transclude scripts from file path Must be on its own line; currently, it's only safe to include from the top level. Nested Include calls may result in unpredictable behavior. See issue
Help(name) Get help about namespaces, types, and specific variables
Expression evaluation For single-line assignment and variable creation, no need to append ; at the end of the line - for script files, proper formatting is required Only applicable in REPL





Summary



Be aware that adopting a scripting system - any scripting system - comes with significant risks. It's wise to plan carefully and pick the best tools for the task at hand.






References



CTI Threat Relationship Graph3 Knoten / 2 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - DevLog 20250724: C# Scripting, Pure 2, Updated + Some Recap
id: 0c47ce38-9014-40a6-9b1b-77cf002d1834
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
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
  - attack.t1059
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "DevLog 20250724: C# Scripting," ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich DevLog 20250724: C# Scripting, Pure 2, U.... 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 DevLog 20250724: C# Scripting, Pure 2, Updated + Some Recap

Thematisch verwandte Begriffe: DevLog, 20250724, Scripting, Pure · 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-96772 | A security flaw has been discovered in Intelliants Subrion CMS up to 4.2…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
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
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick