본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)42k · #6445

competition-race-condition-state-drift

하는 일

이 도구는 여러 행동이 동시에 일어날 때 생기는 문제를 재현하도록 돕습니다. 행동의 순서와 타이밍이 잘못된 데이터나 중복 작업 같은 예기치 않은 오류를 어떻게 일으키는지에 집중합니다.

사용하는 경우

  • ✓행동의 순서가 오류를 일으킨다고 의심될 때.
  • ✓두 가지가 같은 데이터를 동시에 바꾸려고 하면 무슨 일이 일어나는지 테스트하고 싶을 때.
  • ✓일시적인 실패가 어떻게 다른 결과로 이어지는지 이해하는 경우.

스킬 링크

https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-race-condition-state-drift/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-race-condition-state-drift/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“두 사람이 같은 계좌에서 동시에 돈을 인출하려고 하면 무슨 일이 일어나는지 테스트하고 싶습니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 시스템에서 변경될 수 있는 부분(데이터베이스나 캐시의 데이터 등)을 찾습니다. 그다음 동시 행동을 시뮬레이션하며, 순서나 타이밍만 바꿔 기대와 다른 결과가 나오는지 확인합니다.

기술 내용 (원본 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

  1. Identify mutable state first: rows, cache keys, queue payloads, session fields, counters, or files.
  2. Reproduce with smallest concurrent sequence and fixed timing assumptions.
  3. Capture one baseline run and one racing run with only one variable changed.
  4. Track read, check, write, enqueue, and commit boundaries separately.
  5. 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.md for 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
자주 묻는 질문

‘상태’란 무엇인가요?

은행 잔액이나 주문 상태처럼 특정 시점에 시스템이 가진 정보입니다.

‘레이스 컨디션’이란 무엇인가요?

여러 동시 행동이 실행되는 정확한 순서에 따라 작업의 결과가 달라지는 문제입니다.

‘순서’가 왜 중요한가요?

많은 행동이 동시에 일어나는 시스템에서는 처리 순서에 따라 최종 결과가 바뀔 수 있습니다. 순서를 통제하지 않으면 오류가 생길 수 있습니다.

상세 정보

작성자의 원본 설명

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

repo: zhaoxuya520/reverse-skill

인기도

GitHub 스타
42k
순위
#6445
라이선스
MIT
업데이트
2026. 9. 22.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬