Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
Sicherheitslücken (CVE)USN-8821-1: OpenStack Swift vulnerability(24.09.2026 um 21:18 Uhr)
•
Sicherheitslücken (CVE)USN-8820-1: curl vulnerabilities(24.09.2026 um 22:13 Uhr)
•
Linux Tipps & HardeningDSA-6512-1 libreoffice - security update(24.09.2026 um 02:00 Uhr)
••••••••
Sicherheitslücken (CVE)USN-8821-1: OpenStack Swift vulnerability(24.09.2026 um 21:18 Uhr)
•
Sicherheitslücken (CVE)USN-8820-1: curl vulnerabilities(24.09.2026 um 22:13 Uhr)
•
Linux Tipps & HardeningDSA-6512-1 libreoffice - security update(24.09.2026 um 02:00 Uhr)
•••••••
Intelligence View
⚡ tsecurity.de Intelligence

Rust Part 1

Quick Info A part by part series of learning in Rust by @masterdevsabith Announcement Recently I've started learning Rust. So I thought it would be nice, if I could share my learnings here as well. Also to point out the…

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




Quick Info



A part by part series of learning in Rust by @masterdevsabith






Announcement



Recently I've started learning Rust. So I thought it would be nice, if I could share my learnings here as well. Also to point out the mistakes and problems I've made and faced.



Also before continuing, I'm telling you that I will not be consistent in making this part by part articles. I'll write this, whenever I'm getting time.






Introduction



Rust is a modern, statically-typed systems programming language known for its focus on safety, performance, and concurrency. It was originally developed at Mozilla and is designed to be a safer alternative to languages like C and C++. Also it's a compiled programming language.






Key characteristics




  • Memory safety

  • High performance

  • Systems-level control

  • Great tooling (Cargo package manager)


  • etc..







Installation



For installing you can use this guide



during some part of installation, it prompts you to install visual studio, but that's not needed, as you only need to install the visual studio build tools. You can download it directly from visual studio build tools website



during installation, check these things




  • Desktop development with C++

  • Windows 10/11 SDK

  • MSVC v143 build tools






Hello World !



Now let's start a project and run hello world from it.




  1. create a folder named projects for putting all your rust projects

  2. create a folder named hello_world (this is your first project)

  3. Now, make a new source file and call it main.rs. (rust files end with .rs extension)

  4. Now, paste in this code in that main.rs file :





fn main() {
println!("Hello, world!");
}








  1. Save the file, go to terminal, in ~/projects/hello_world directory, and enter the following commands to compile and run the file :




$ rustc main.rs
$ ./main
Hello, world!






On Windows, enter the command .\main instead of ./main:




  1. Running this should output "Hello World". Finally you can call yourself a Rust programmer.






Analysing Code



we're going to review the above program for understanding more details.




fn main() {

}






these lines define a function named main and it's the entrypoint (It runs first in every executable Rust program).




  • the first line declares a function named main using the fn keyword, and that function has no parameters, if it had, that would go inside the parentheses ().


  • The function body is wrapped in {}. Rust requires curly brackets around all function bodies.







The body of the main function holds the following code:




println!("Hello, world!");






This line does all the work in this little program: it prints text to the screen.




  • println! calls a Rust Macro, for now just understand that using a ! means that you’re calling a macro instead of a normal function and that macros don’t always follow the same rules as functions.


  • you see the "Hello, world!" string. We pass this string as an argument to println!, and the string is printed to the screen.


  • we end the line with a semicolon (;), which indicates that this expression is over and the next one is ready to begin. Most lines of Rust code end with a semicolon. (There are places where you should not use semicolon).







Compiling and Running Are Separate Steps



Before running a Rust program, you must compile it using the Rust compiler by entering the rustc command and passing it the name of your source file, like this:




$ rustc main.rs






for simple programs, compiling with rustc is enough

but for larger projects, you'll have to do something, in next part we'll learn cargo tool just like npm for js.






Socials



drop me a follow on both of this 👇



Github : @masterdevsabith

Twitter/X : @masterdevsabith

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - Rust Part 1
id: 659f49ae-32c3-47a1-a594-072f06df53cb
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
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Rust Part 1" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Rust Part 1")
| 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: "*Rust Part 1*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Rust Part 1"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc
🎯
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 Rust Part 1.... 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 Rust Part 1

Thematisch verwandte Begriffe: Rust, Part · 6 Treffer

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-81473 | Dell Rugged Control Center (RCC), versions prior to 5.2.206, contain an …
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
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
📂 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...
↗ Original-Quelle