Why does my AI write code that is correct in isolation but insecure in my system?
κΈ°ν
AI coding assistants generate code that is syntactically valid and functionally correct at the function level but have no model of the security invariants of the surrounding system: the trust boundaries, IAM policies, data classification, and threat model that make a pattern safe or dangerous in a specific codebase. The result is structurally valid code that exposes tokens in logs, omits row-level access checks, or misconfigures permissions in ways an engineer familiar with the system would catch immediately. CVE-2025-48757 is a concrete case where an AI tool generated database schemas without row-level security, silently exposing 170 production applications. Research shows AI-assisted commits leak secrets at more than twice the rate of human-only commits. No current assistant ingests or reasons about a codebase's existing security model before generating code.
μ μ€μνκ°
Security context unawareness produces a class of vulnerabilities that pass every syntax check and unit test but are trivially exploitable once deployed.
κΈ°ν νκ° λ°©μ
κΈ°ν μ μλ μΈ‘μ κ°μ΄ μλ μ μ£Όκ΄μ νκ°μ λλ€. μΌλ§λ λΆνΈνμ§, μΌλ§λ μμ£Ό λ°μνλμ§, νμ¬ ν΄κ²°μ± μ΄ μΌλ§λ λΆμ‘±νμ§λ₯Ό λ°μν©λλ€. μ μκ° λμμλ‘ λ§λ€ κ°μΉκ° λ λλ€κ³ μκ°ν©λλ€.
λ°μνμ λ μΌλ§λ ν° λΆνΈμ μ΄λνλμ§.
μ€μ λ‘ μΌλ§λ μμ£Ό μ νκ² λλμ§.
νμ¬ μ΄λ₯Ό ν΄κ²°ν λ§ν λκ΅¬κ° μΌλ§λ λΆμ‘±νμ§.
ν΄κ²°ν κ°μΉ μλ λ λ§μ λ¬Έμ λ€
νμ λ«λ μκ° λͺ¨λ AI μ±μ΄ λλ₯Ό μμ΄λ²λ¦¬λ μ΄μ λ 무μμΌκΉ?
AIμλ‘μ΄ λΆμΌλ₯Ό λ°°μ°λ κ²μ΄ μ¬μ ν 무μμ λ¬Όμ΄μΌ ν μ§ μλ κ²μ μν΄ μ νλ°λ μ΄μ λ 무μμΌκΉ?
AIλΉμ λ¬Έκ°λ μ AIκ° λ§ν λ΄μ©μ κ²μ¦ν μ μμκΉ?
AIλͺ¨λΈμ λ²€μΉλ§ν¬λ‘ ν μ€νΈνκ³ κ°μΌλ‘ λ°°ν¬νλ μ΄μ λ 무μμΌκΉ?
AIAI μμ΄μ νΈλ μ μμ μ μ€μλ₯Ό κΈ°μ΅νμ§ λͺ»ν κΉμ?
AIλͺ¨λΈμ΄ μ€μ λ‘ λ¬΄μμΌλ‘ νμ΅νλμ§ μ κ°μ¬ν μ μμκΉμ?