9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
4.8 KiB
4.8 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-static-and-dynamic-analysis | Static and Dynamic Analysis | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Static and Dynamic Analysis
매 한 줄
"매 코드 의 read 의 SAST, 매 코드 의 run 의 DAST". 매 static 의 source/binary 의 inspection — 매 dynamic 의 running app 의 probe. 2026 의 best practice 의 SAST + DAST + IAST 의 layered defense.
매 핵심
매 SAST (Static Application Security Testing)
- 매 source code / bytecode 의 분석 — 매 execution 의 X.
- 강점: full coverage, early in SDLC, finds hard-to-trigger bugs.
- 약점: false positives, no runtime context, framework-specific FN.
- Tools: Semgrep, CodeQL, SonarQube, Snyk Code.
매 DAST (Dynamic Application Security Testing)
- 매 running app 의 black-box probing — 매 HTTP fuzzing.
- 강점: real runtime behavior, env-config bugs, low FP.
- 약점: limited coverage (only reachable paths), late in SDLC.
- Tools: OWASP ZAP, Burp Suite, Nuclei.
매 IAST (Interactive)
- 매 instrumented agent 의 runtime data flow tracking.
- Hybrid: static-style precision + dynamic-style validity.
- Tools: Contrast Security, Checkmarx IAST.
매 응용
- CI/CD security gate (SAST on every PR).
- Pre-prod scan (DAST against staging).
- Compliance (PCI, SOC2, ISO 27001).
💻 패턴
Semgrep — custom SAST rule
rules:
- id: hardcoded-jwt-secret
pattern: jwt.sign($PAYLOAD, "...")
message: Hardcoded JWT secret detected
severity: ERROR
languages: [javascript, typescript]
CodeQL — taint tracking
import javascript
class XssConfig extends TaintTracking::Configuration {
XssConfig() { this = "Xss" }
override predicate isSource(DataFlow::Node n) {
n instanceof RemoteFlowSource
}
override predicate isSink(DataFlow::Node n) {
exists(DOM::DomMethodCallNode c | c.getMethodName() = "innerHTML" |
n = c.getArgument(0))
}
}
ZAP — automated DAST scan
docker run -v $(pwd):/zap/wrk -t zaproxy/zap-stable \
zap-baseline.py -t https://staging.example.com \
-r report.html -J report.json
Nuclei — template-based DAST
id: log4shell
info:
name: Apache Log4j RCE
severity: critical
requests:
- method: GET
path: ["{{BaseURL}}"]
headers:
User-Agent: "${jndi:ldap://{{interactsh-url}}/a}"
matchers:
- type: word
part: interactsh_protocol
words: ["dns"]
CI integration — GitHub Actions
- uses: returntocorp/semgrep-action@v1
with:
config: p/owasp-top-ten
- uses: github/codeql-action/analyze@v3
- name: ZAP Baseline
uses: zaproxy/action-baseline@v0.10.0
with:
target: 'https://staging.example.com'
Tainted data flow — Java pseudocode
String input = request.getParameter("q"); // SOURCE (tainted)
String sanitized = StringEscapeUtils.escapeHtml4(input); // SANITIZER
response.getWriter().write(sanitized); // SINK (safe)
// SAST tracks: source → sink without sanitizer = vulnerability
SBOM + dependency scanning
syft dir:. -o cyclonedx-json > sbom.json
grype sbom:sbom.json --fail-on high
매 결정 기준
| 상황 | Approach |
|---|---|
| Pre-commit, fast feedback | SAST (Semgrep) |
| Deep semantic analysis | CodeQL |
| Pre-prod runtime check | DAST (ZAP, Burp) |
| Runtime + coverage | IAST (Contrast) |
| Dependency vulns | SCA (Snyk, Grype) |
기본값: 매 Semgrep (PR) + ZAP baseline (nightly) + Grype (deps).
🔗 Graph
- 부모: Application Security · CI/CD Pipeline & IDE Security Integration
- 변형: SAST · 보안 및 시스템 신뢰성 표준 · IAST · SCA_Fundamentals
- Adjacent: Fuzzing · Threat Modeling · 보안 및 시스템 신뢰성 표준
🤖 LLM 활용
언제: code review automation, custom rule generation, false-positive triage. 언제 X: full code understanding (LLM hallucinates), security-critical decisions without human review.
❌ 안티패턴
- SAST only: 매 runtime config bug 의 miss — 매 DAST 의 추가.
- Ignore false positives: 매 alert fatigue 의 cause — 매 tuning 의 invest.
- Scan in prod: 매 DAST 의 staging — 매 prod 의 X.
- One-time scan: 매 continuous 의 — 매 every PR 의 gate.
🧪 검증 / 중복
- Verified (OWASP Testing Guide v5, NIST SP 800-218).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — SAST/DAST/IAST patterns, CI integration |