Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
YouTube Security VideosGoogle Cloud Tech: Gemini is coming to your city(24.09.2026 um 15:00 Uhr)
•
AI & KI NachrichtenGoogle’s latest moonshot to put machine learning in space(24.09.2026 um 15:12 Uhr)
•
Windows Tipps & SecurityPoll: What's your favorite Surface of 2026?(24.09.2026 um 14:58 Uhr)
•••
Sichere ProgrammierungStreaming Materialized Views for Live Read Models (2026)(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungA Day Is Not 86400 Seconds: The DST Bug in Your Date Math(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungSetting up Traefik: reverse proxy with automatic HTTPS(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungA 200 OK response does not prove a secret leak(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungHow hot do you like it?(24.09.2026 um 15:05 Uhr)
•
YouTube Security VideosGoogle Cloud Tech: Gemini is coming to your city(24.09.2026 um 15:00 Uhr)
•
AI & KI NachrichtenGoogle’s latest moonshot to put machine learning in space(24.09.2026 um 15:12 Uhr)
•
Windows Tipps & SecurityPoll: What's your favorite Surface of 2026?(24.09.2026 um 14:58 Uhr)
•••
Sichere ProgrammierungStreaming Materialized Views for Live Read Models (2026)(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungA Day Is Not 86400 Seconds: The DST Bug in Your Date Math(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungSetting up Traefik: reverse proxy with automatic HTTPS(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungA 200 OK response does not prove a secret leak(24.09.2026 um 15:02 Uhr)
•
Sichere ProgrammierungHow hot do you like it?(24.09.2026 um 15:05 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Advent of Code 2024 - Day 23: LAN Party

Day 23: LAN Party Github Repo - Solutions Today's challenge was rather run, and somewhat simple (or at least Part 1 was). Part 1: Collect all the connections in trios where any of the triangles computers begin with t. Simple…

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




Day 23: LAN Party



Github Repo - Solutions



Today's challenge was rather run, and somewhat simple (or at least Part 1 was).






Part 1:



Collect all the connections in trios where any of the triangles computers begin with t. Simple as that really, then count the number of triangles.



To achieve this we create a mapping of node -> connections (neighbors) , so our connections object would look something resembling:




connections = {
'kh': {'tc', 'dr'},
'tc': {'kh', 'dr', 'zx'},
'dr': {'kh', 'tc', 'xy'},
'zx': {'tc'},
'xy': {'dr', 'tz'},
'tz': {'xy'}
}






To gain the trios, we can iterate over the connections, and retrieve their neighbours - remember in Python for node in connections will loop over the keys, and not return the values. To access the values, we need to use the keys (node) to to access them via an index connections[node].



For each pair of neighbour's of node, it generates combinations. For example:



If node = 'kh' and neighbours = {'tc', 'dr'}, the pairs are ('tc', 'dr'). It checks if the two neighbours (neighbor1 and neighbor2) are also connected to each other (via connections[neighbor1]).



If they are connected, a triangle exists between node, neighbor1, and neighbor2.

The triangle is sorted and added to a set to avoid duplicates.



Then find all the connections where any of the nodes begin with t using




triangles_with_t = [triangle for triangle in triangles if any(
node.startswith('t') for node in triangle)]









Part 2



On part 2 we need to find the largest set of inter-connected computers. When working with a graph like setup, interconnected nodes we call a clique.



Let's break this down using the Bron-Kerbosch algorithm. The Bron-Kerbosch algorithm is used to find the largest groups (called cliques) in a graph. In this context, a graph is just a collection of nodes (like computers) connected by edges (connections). Here's how the algorithm works and how it relates to solving our puzzle.






What’s a Clique?



A clique is a group of nodes where every node is directly connected to every other node.



Imagine you're at a party, everyone knows everyone else in the group. If even one person doesn’t know someone else, it’s not a clique.



In our puzzle, the goal is to find the largest group of interconnected computers at the LAN party. This group is the largest clique.






What is a subset?



A subset is a smaller piece of a larger group, for example:



If the largest clique is (A,B,C,D), then the smaller subsets could beA,B,CorB C D` where they're all connected. These subset are still cliques because all the nodes in the subset are connected.






Why Use the Bron-Kerbosch Algorithm?



Finding the largest clique by brute force (trying every possible group) is slow for large inputs. For example, if there are 3,000+ computers, there are billions of possible groups to check.



The Bron-Kerbosch algorithm makes this process faster by:




  • Starting with smaller groups (subsets) and expanding them.


  • Stopping early when a group can’t grow into a larger clique.


  • Avoiding repeated checks of the same subsets.







How does it work ?



The Bron-Kerbosch algorithm works recursively, meaning it keeps calling itself to build up cliques step by step. Here’s how it works:



Input:

R: A group of nodes that might form a clique (starts empty).

P: A list of nodes that can still join the clique (starts with all nodes).

X: A list of nodes we’ve already checked (starts empty).



Steps:

If P and X are both empty:

R is a maximal clique (you can’t add more nodes to it). Save R as a result.



Otherwise:

Pick a node from P and add it to R.

Update 𝑃 and 𝑋 to only include nodes connected the new R.



Call the algorithm again with the new R,P, and

X.



When finished, move the node from P to X (it’s processed).



This repeats until all nodes are processed, ensuring all cliques are found without redundant checks.






How Does This Solve the Puzzle?



Input: Say we have a list of computer connections, like:



python

A-B

A-C

B-C

B-D

C-D



These connections represent a graph where nodes (computers) are connected by edges (wires).



Goal: Find the largest group of computers where each one is directly connected to every other computer.



Process:



The algorithm starts with smaller groups (subsets) and tries to grow them into cliques.

It stops if a group can’t grow any further (maximal cliques).



Among all cliques, it identifies the largest one.



Output:

For the example, the largest clique is

{B,C,D}.



What About Subsets?

In the context of the puzzle:



Subsets of a clique (e.g. {B,C} from {B,C,D}) are not interesting because they’re smaller than the largest clique.



The algorithm avoids redundant checks of subsets by keeping track of processed nodes (X).






Recap:



Clique: A group where every node is connected to every other node.



Subset: A smaller group taken from a larger clique.



Bron-Kerbosch:

Finds all cliques in a graph.

Focuses on the largest cliques without wasting time on smaller subsets.



Puzzle Solution:

Use the algorithm to find the largest group of interconnected computers at the LAN party.



I hope this has helped you understand the solution, learn about the Bron-Kerbosch algorithm, and learn something new about Python syntax.



As always feel free to drop me a follow, or reach out on Twitter.



The result is the largest clique, which is the answer to the puzzle.






Other helpful Python points:



The Bron-Kerbosch recursive call, passes in some modified properties r | node, p & connections[node].



In Python



r | node - creates a new set with all the nodes from the current set of nodes in the clique we're building (r), plus another node we're adding.



p & connections[node] - This creates a new set that contains only the nodes that:




  • Are in both p (the set of nodes that can still be part of the clique).


  • Are also in connectionsnode.




Explanation:

& is the intersection operator for sets.

connections[node] is the set of nodes directly connected to node.



p & connections[node] means “find the common nodes between p and connections[node].”

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - Advent of Code 2024 - Day 23: LAN Party
id: efcc861c-4573-49f2-9381-e404432d8621
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
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Advent of Code 2024 - Day 23: " ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Advent of Code 2024 - Day 23: LAN Party.... 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 Advent of Code 2024 - Day 23: LAN Party

Thematisch verwandte Begriffe: Advent, Code, 2024, Party · 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-97179 | A security vulnerability has been detected in O2OA up to 9.5.3/10.0.2. T…
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