Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungConnect Claude to Perplexity AI Pro with Zero Search API Fees(24.09.2026 um 09:57 Uhr)
Sichere ProgrammierungInvestigating Fraud with a Graph, Not Just a Prompt(24.09.2026 um 10:01 Uhr)
Sichere ProgrammierungA .docx does not store where its pages end(24.09.2026 um 10:01 Uhr)
Sichere Programmierung9 Best Enterprise AI Gateways With SSO, RBAC, and Audit Logs (2026)(24.09.2026 um 10:01 Uhr)
Sichere ProgrammierungThe Signal Contract for a 5-Minute TWAP Market(24.09.2026 um 10:03 Uhr)
Sichere ProgrammierungRemoteMac(24.09.2026 um 10:06 Uhr)
Sichere ProgrammierungDesigning a Batch Move That Handles Partial Failure(24.09.2026 um 10:07 Uhr)
Sichere ProgrammierungThe Model Was Never the Problem(24.09.2026 um 10:07 Uhr)
Sichere ProgrammierungConnect Claude to Perplexity AI Pro with Zero Search API Fees(24.09.2026 um 09:57 Uhr)
Sichere ProgrammierungInvestigating Fraud with a Graph, Not Just a Prompt(24.09.2026 um 10:01 Uhr)
Sichere ProgrammierungA .docx does not store where its pages end(24.09.2026 um 10:01 Uhr)
Sichere Programmierung9 Best Enterprise AI Gateways With SSO, RBAC, and Audit Logs (2026)(24.09.2026 um 10:01 Uhr)
Sichere ProgrammierungThe Signal Contract for a 5-Minute TWAP Market(24.09.2026 um 10:03 Uhr)
Sichere ProgrammierungRemoteMac(24.09.2026 um 10:06 Uhr)
Sichere ProgrammierungDesigning a Batch Move That Handles Partial Failure(24.09.2026 um 10:07 Uhr)
Sichere ProgrammierungThe Model Was Never the Problem(24.09.2026 um 10:07 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Building a Driver-Based Cooldown Manager for Laravel

Most Laravel applications eventually need some form of cooldown. Not request throttling—but actual action cooldowns. Examples include: Password reset requests Email verification OTP / SMS sending AI prompt generation Report e…

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



Most Laravel applications eventually need some form of cooldown.



Not request throttling—but actual action cooldowns.



Examples include:




  • Password reset requests

  • Email verification

  • OTP / SMS sending

  • AI prompt generation

  • Report exports

  • Payment retries

  • Reward claiming

  • Expensive background jobs



Laravel already provides an excellent RateLimiter, but it's primarily designed for request throttling (for example, "60 requests per minute").



When I was building an application, I found myself needing something slightly different:




  • Persist cooldowns in either cache or database

  • Attach cooldowns directly to Eloquent models

  • Reuse the same API across controllers, jobs, commands, and middleware

  • Store cooldowns for arbitrary targets such as Users, API tokens, IP addresses, or custom identifiers

  • Allow switching storage drivers without changing application code



That led me to build Laravel Cooldown.





The Goal



I wanted an API that was expressive enough to read almost like English.




Cooldown::for('password_reset', $user)->enforce();

// Perform the action...

Cooldown::for('password_reset', $user)->for(300);






Checking a cooldown is equally straightforward:




if (Cooldown::for('password_reset', $user)->active()) {
$remaining = Cooldown::for('password_reset', $user)
->info()
->remainingSeconds();
}









Some Design Decisions



Rather than coupling everything to a single storage implementation, the package uses Laravel's Illuminate\Support\Manager to provide interchangeable drivers.



Currently it supports:




  • Cache

  • Database



Additional drivers can be registered using Laravel's familiar extend() pattern.



Another design decision was to support Eloquent models as first-class cooldown targets.



Instead of manually generating cache keys, you can simply write:




$user->cooldown('email_verification')->for(300);






The package automatically resolves unique keys for models, scalars, IP addresses, and other supported targets.






Middleware That Only Starts on Success



One small behavior that bothered me with many cooldown implementations is that they start counting down before the request has actually succeeded.



Imagine submitting a form that fails validation.



You shouldn't have to wait another minute just because you mistyped your email address.



The middleware in Laravel Cooldown only creates the cooldown after successful (2xx) or redirected (3xx) responses.






Features




  • Cache and Database drivers

  • Expressive fluent API

  • Native Eloquent integration

  • Route middleware

  • Immutable DTOs

  • Event dispatching

  • Automatic database pruning

  • Custom driver support






Feedback Welcome



This is an open-source project, and I'd really appreciate feedback from the Laravel community.



If you have suggestions for the API, architecture, or documentation—or ideas for additional drivers or features—I'd love to hear them.



GitHub:

https://github.com/zaber-dev/laravel-cooldown

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - Building a Driver-Based Cooldown Manager for Laravel
id: fefd0e20-2ea7-46c8-bf58-e8d7bad4bb7f
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 = "Building a Driver-Based Cooldo" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Building a Driver-Based Cooldown Manager.... 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 Building a Driver-Based Cooldown Manager for Laravel

Thematisch verwandte Begriffe: Building, DriverBased, Cooldown, Manager · 6 Treffer

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-97056 | SigNoz versions from v0.98.0 up to (but not including) v0.143.0, when co…
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