본문으로 건너뛰기
Skillpedia
에이전트35k · #7878

detecting-supply-chain-attacks-in-ci-cd

하는 일

이 도구는 코드 자동화 시스템(CI/CD)을 점검해 소프트웨어 공급망을 공격하는 데 쓰일 수 있는 보안 결함을 찾습니다. 안전하지 않은 작업, 코드 주입, 민감 정보 유출을 살펴봅니다.

사용하는 경우

  • ✓잠재적인 공급망 공격을 조사할 때.
  • ✓자동화 과정의 보안을 설정하거나 강화할 때.
  • ✓보안 모니터링 도구가 알려진 위험을 다루고 있는지 확인하는 경우.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-supply-chain-attacks-in-ci-cd/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-supply-chain-attacks-in-ci-cd/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 GitHub Actions 워크플로를 검사해서 공급망 보안 위험이 있는지 확인해 주세요.”

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

작동 방식

이 도구는 자동화 시스템의 설정 파일을 분석합니다. 고정되지 않은 코드 버전을 쓰거나 악성 명령이 주입될 가능성 같은 위험한 패턴을 찾습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Detecting Supply Chain Attacks in CI/CD

When to Use

  • When investigating security incidents that require detecting supply chain attacks in ci cd
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Familiarity with security operations concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Instructions

Scan CI/CD workflow files for supply chain risks by parsing GitHub Actions YAML, checking for unpinned dependencies, script injection vectors, and secrets exposure.

import yaml
from pathlib import Path

for wf in Path(".github/workflows").glob("*.yml"):
    with open(wf) as f:
        workflow = yaml.safe_load(f)
    for job_name, job in workflow.get("jobs", {}).items():
        for step in job.get("steps", []):
            uses = step.get("uses", "")
            if uses and "@" in uses and not uses.split("@")[1].startswith("sha"):
                print(f"Unpinned action: {uses} in {wf.name}")

Key supply chain risks:

  1. Unpinned GitHub Actions (using @main instead of SHA)
  2. Script injection via ${{ github.event }} expressions
  3. Overly permissive GITHUB_TOKEN permissions
  4. Third-party actions with write access to repo
  5. Dependency confusion via public/private package name collision

Examples

# Check for script injection in run steps
for step in job.get("steps", []):
    run_cmd = step.get("run", "")
    if "${{" in run_cmd and "github.event" in run_cmd:
        print(f"Script injection risk: {run_cmd[:80]}")
자주 묻는 질문

소프트웨어 공급망 공격이란 무엇인가요?

도구나 라이브러리처럼 정상적인 구성 요소를 공격자가 침해하고, 이를 통해 그 구성 요소를 사용하는 소프트웨어나 시스템을 감염시키는 공격입니다.

‘고정되지 않은 액션(unpinned actions)’은 무엇을 뜻하나요?

정확한 버전을 지정하지 않고 액션(작은 자동화 스크립트)을 사용하는 것입니다. 액션이 악성 코드를 담은 채 업데이트되어도 모를 수 있으므로 위험합니다.

‘의존성 혼동(dependency confusion)’이란 무엇인가요?

공격자가 회사 내부 패키지와 같은 이름의 악성 패키지를 만들어 공개 저장소에 올리는 기법입니다. 설정을 조심하지 않으면 시스템이 올바른 패키지 대신 악성 버전을 내려받을 수 있습니다.

상세 정보

작성자의 원본 설명

Scans GitHub Actions workflows and CI/CD pipeline configurations for supply chain attack vectors including unpinned actions, script injection via expressions, dependency confusion, and secrets exposure. Uses PyGithub and YAML parsing for automated audit. Use when hardening CI/CD pipelines or investigating compromised build systems. '

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#7878
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬