competition-race-condition-state-drift
यह क्या करती है
यह टूल उन समस्याओं को दोबारा बनाने में मदद करता है जो तब होती हैं जब कई काम एक साथ होते हैं। यह इस पर ध्यान देता है कि इन कामों का क्रम और समय गलत नतीजे, जैसे गलत डेटा या दोहरी कार्रवाई, कैसे पैदा कर सकता है।
कब इस्तेमाल करें
- ✓जब आपको शक हो कि कार्रवाइयों का क्रम कोई गड़बड़ी पैदा कर रहा है।
- ✓यह टेस्ट करने के लिए कि अगर दो चीज़ें एक ही समय पर एक ही डेटा बदलने की कोशिश करें तो क्या होता है।
- ✓यह समझने के लिए कि अस्थायी विफलताएँ अलग-अलग नतीजे कैसे दे सकती हैं।
Skill का लिंक
https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-race-condition-state-drift/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं टेस्ट करना चाहता हूँ कि अगर दो लोग एक ही समय पर एक ही खाते से पैसे निकालने की कोशिश करें तो क्या होता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल सिस्टम के उन हिस्सों की पहचान करता है जो बदले जा सकते हैं (जैसे database या cache का डेटा)। फिर वह एक साथ होने वाली कार्रवाइयों की नकल करता है, सिर्फ क्रम या समय बदलकर, ताकि देखा जा सके कि क्या इससे अपेक्षा से अलग नतीजा आता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Competition Race Condition State Drift
Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.
Use this skill when the decisive behavior depends on request timing, async ordering, lock gaps, or stale state.
Reply in Simplified Chinese unless the user explicitly requests English.
Quick Start
- Identify mutable state first: rows, cache keys, queue payloads, session fields, counters, or files.
- Reproduce with smallest concurrent sequence and fixed timing assumptions.
- Capture one baseline run and one racing run with only one variable changed.
- Track read, check, write, enqueue, and commit boundaries separately.
- Prove final state drift from a clean reset.
Workflow
1. Map Mutable Boundaries
- Record transaction scope, lock behavior, retry logic, idempotency keys, cache invalidation, and queue handoff.
- Note where read-check-write is split across requests, workers, or services.
- Keep each boundary tied to exact timestamps or sequence numbers.
2. Reproduce Timing Window
- Build deterministic concurrent inputs with controlled delay, duplicate requests, or reordered worker execution.
- Compare accepted and rejected paths under identical payloads.
- Record which condition flips when ordering changes.
3. Reduce To Decisive Race Chain
- Compress to: request A and B ordering -> stale check or lock gap -> conflicting writes -> resulting capability or artifact.
- State whether root cause is missing lock, weak idempotency, stale cache read, delayed async commit, or retry side effect.
- If the path becomes queue-dominant, hand off to queue worker drift skill.
Read This Reference
- Load
references/race-condition-state-drift.mdfor race harness ideas, evidence blocks, and parity checks.
What To Preserve
- Mutable keys, transaction boundaries, lock behavior, and idempotency markers
- Timestamped or sequenced traces for baseline and race runs
- One minimal replayable concurrent sequence proving drift
अक्सर पूछे जाने वाले सवाल
'state' क्या है?
State वह जानकारी है जो सिस्टम किसी खास पल में रखता है, जैसे बैंक खाते का बैलेंस या ऑर्डर का स्टेटस।
'race condition' क्या है?
यह एक समस्या है जो तब होती है जब किसी काम का नतीजा इस पर निर्भर करता है कि कई एक साथ चलने वाली कार्रवाइयाँ किस सटीक क्रम में चलीं।
'क्रम' क्यों मायने रखता है?
जिन सिस्टम में बहुत सी कार्रवाइयाँ एक साथ होती हैं, वहाँ उनका प्रोसेसिंग क्रम अंतिम नतीजा बदल सकता है। अगर क्रम नियंत्रित न हो, तो गड़बड़ियाँ हो सकती हैं।
जानकारी
लेखक का मूल विवरण
Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for race windows, ordering bugs, idempotency failures, lock gaps, concurrent worker drift, and state inconsistencies that produce decisive effects. Use when the user asks to reproduce timing-sensitive bugs, concurrent state corruption, duplicate actions, stale reads, or privilege or balance drift caused by request orderin
लोकप्रियता
- GitHub स्टार
- 42k
- रैंकिंग में स्थान
- #6445
- लाइसेंस
- MIT
- अपडेट की गई
- 22/9/2026
कमेंट
- …
इस repository की और skills
competition-ad-certificate-abuse
42kयह आपके एजेंट को digital certificate सिस्टम पर होने वाले हमलों का विश्लेषण करने में मदद करता है। जाँच करता है कि certificates का गलत इस्तेमाल करके एक्सेस कैसे पाया जा सकता है।
competition-agent-cloud
42kयह आपके एजेंट को AI और cloud सिस्टम की सुरक्षा चुनौतियों का विश्लेषण करने में मदद करता है। जाँच करता है कि prompts, tools और cloud का गलत फ़ायदा कैसे उठाया जा सकता है।
competition-android-hooking
42kयह आपके एजेंट को Android एप्लिकेशन की जाँच करने में मदद करता है। विश्लेषण करता है कि ऐप अंदर से कैसे काम करते हैं और उन्हें कैसे बदला या exploit किया जा सकता है।
competition-browser-persistence
42kयह आपके एजेंट को समझने में मदद करता है कि वेबसाइटें ब्राउज़र में जानकारी कैसे स्टोर करती हैं। cookies और दूसरे डेटा की जाँच करके सेशन कैसे काम करते हैं, यह समझाता है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।