TY - JOUR AB - Purpose– The purpose of this paper is to propose a generic approach that prevents a specific class of code injection attacks (CIAs) in a novel way.Design/methodology/approach– To defend against CIAs this approach involves detecting attacks by using location‐specific signatures to validate code statements. The signatures are unique identifiers that represent specific characteristics of a statement's execution. The key property that differentiates the scheme presented in this paper is that these characteristics do not depend entirely on the code statement, but also take into account elements from its execution context.Findings– The approach was applied successfully to defend against attacks targeting structured query language (SQL), XML Path Language and JavaScript with positive results.Originality/value– Despite many countermeasures that have been proposed the number of CIAs has been increasing. Malicious users seem to find new ways to introduce compromised embedded executable code to applications by using a variety of languages and techniques. Hence, a generic approach that defends against such attacks would be a useful countermeasure. This approach can defend attacks that involve both domain‐specific languages (e.g. SQL) and general purpose languages (e.g. JavaScript) and can be used both against client‐side and server‐side attacks. VL - 19 IS - 3 SN - 0968-5227 DO - 10.1108/09685221111153555 UR - https://doi.org/10.1108/09685221111153555 AU - Mitropoulos Dimitris AU - Karakoidas Vassilios AU - Louridas Panagiotis AU - Spinellis Diomidis PY - 2011 Y1 - 2011/01/01 TI - Countering code injection attacks: a unified approach T2 - Information Management & Computer Security PB - Emerald Group Publishing Limited SP - 177 EP - 194 Y2 - 2024/04/24 ER -