Manuscript Offprint
arXiv:2611.04271From Guidelines to Practice: Defining Requirements for AI Red-Teaming Tools
Abstract
Artificial Intelligence (AI) has seen significant developments and increased usage in recent years. AI benefits various tasks, automates decision-making, and enhances efficiency. However, AI also introduces additional attack surfaces for threat actors to perform attacks like prompt injection and jailbreaking, making security a great concern. AI security testing aims to imitate adversarial attacks or malicious inputs via manual testing or with the assistance of tools. Thus, it is critical that organizations are aware of the capabilities and limitations of the tools before using them. Existing studies provide insights on the overall architecture of AI security testing tools and raise concerns on their reliability, but their analysis is limited to attack performance. Selection of a tool for AI risk assessments should also depend on their alignment with the recommendations of industry standards, but to our knowledge, previous studies have not utilized such guidelines. To bridge this gap, we analyze several industry standards and guidelines to identify the requirements of AI testing tools. We discuss and highlight desirable features across various AI security testing tools for a variety of different AI systems. We evaluated six tools across six Large Language Models, reported on our insights, and identified gaps that should be considered by future tools.
Keywords: AI Security, Artificial Intelligence, Large Language Models, Vulnerability Analysis
1 Introduction
Artificial Intelligence (AI) is an area of computer science that aims to simulate human learning and enable problem-solving capabilities in computers. AI techniques capture relationships in the data and utilize them to anticipate results or generate synthetic samples [1]. AI systems comprise complex architectures and require immense computational power to facilitate training and inference decisions. AI enhances productivity by automating tasks in fields not limited to healthcare, finance, and transportation [2].
Generative AI (GenAI) is a sub-category of AI and has seen tremendous growth in recent years. For one, the widespread application and business opportunities of large language models (LLMs) promoted the proliferation and development of AI. LLMs had evolved from earlier task-specific language models to versatile multi-tasking models, which can now be fine-tuned with minimal data learning [3]. LLMs have exhibited contextual understanding of natural language and can produce text that resembles human writing and execute instructions, potentially adaptable to different industries and environments [4]. They are efficient in text generation, summarization, translation [5–7], and can be effectively applied in a wider range of application scenarios such as code generation, research and education in medicine, automated financial report generation, and forecasting market trends and analysis of investor sentiment [8–10]. LLMs were shown to be comparable to or even outperform humans in tasks like summarizing clinical text [11] and achieving a top 10% score on a simulated exam in academic benchmarks [12].
LLMs have brought revolutionary changes to workflows in many fields. ChatGPT [13] alone has over 400 million weekly users [14]. Meta AI's LLaMA [15] and Google's PaLM [16] are also popular. Forbes predicts that the AI market size is expected to reach USD 1,339 billion by 2030 while an IBM report mentioned that about 42% of enterprise-scale companies have already deployed AI in their businesses [17, 18]. AI will no doubt accelerate operations, development, and innovation.
However, AI does not come without flaw, and AI related cyberattacks were reported. Hugging Face, a popular repository for AI resources, was found to contain poisoned models that may potentially grant privileged access to a victim's machine through code manipulation and modification [19]. Microsoft uncovered a jailbreak vulnerability that can extract personally identifiable information (PII) and harmful content from GenAI models [20]. The attack simply involves sending a prompt that tells the model to augment its encoded security features. Researchers from HiddenLayer discovered that the Gemini Pro model is susceptible to the inverse scaling property of LLMs [21]. They constructed malicious prompts from synonyms to extract the system prompt, which should only be accessible to model administrators.
There are plenty of tools in the market to help organizations evaluate the security and safety of AI applications. AgentFence [22], Garak [23], Giskard [24], Promptfoo [25], Prompt Fuzzer [26], and Whistleblower [27] are some examples. With a plethora of such tools in the market, a common question arises: How do we select the right tool for our use case with specific requirements and restrictions? A study performed by Brokman et al. [28] provides insights on the overall architecture of popular AI security testing tools and their inconsistencies in attack evaluation. While their study provides an initial foundation for comparing tools, their analysis does not shed light on whether the tools can satisfy the needs and requirements of organizational AI risk management. It is necessary to recognize the requirements for security, governance, and usability to assess a tool's suitability for AI risk management and propose directions to fill missing gaps in their architecture.
Standards bodies and global entities have released materials, frameworks, principles, and guidelines [29–40] to help organizations control and minimize AI risks. They provide the understanding to establish effective strategies for secure development, deployment, and engagement of AI systems. They contain expert recommendations regarding the desirable features of AI security testing tools and thereby evaluate their capabilities for performing AI risk assessments.
In this paper, we performed an in-depth analysis of various guidelines to understand their strategies to securely develop and deploy AI systems, identified desirable features for AI security testing. We aim to provide awareness to organizations when adopting AI security testing tools with a set of proposed desired features. Here are the main contributions of this work:
- We analyzed various industry standards and guidelines to understand their strategies and the role of security testing tools for AI risk management.
- We highlighted desirable features of AI security testing tools from our analysis.
- We examined how desirable features are reflected in practice by reviewing frameworks and guidelines on top of experimenting, comparing, and analyzing several open-source LLM red-teaming tools.
This is the structure of the remaining sections: Section II details background information about relevant guidelines for securing AI systems and an overview of different AI security testing tools. In Section III analyzed how AI security testing tools can contribute to fulfilling recommendations of AI security guidelines and identified a list of desirable features. We determined how the desired features relate to existing guidelines in Section IV. Section V describes the experiments and results shared in Section VI. Conclusion is in Section VII.
2.1 AI security frameworks and guidelines
In face of the inherent challenges and risks of AI systems and models, standards bodies and global entities have released documents and guidelines [31–36, 38, 41, 42] to address a broad spectrum of security use cases across the AI System Development Life Cycle (AI SDLC). Organizations can then better understand security concerns of AI systems or adopt them into their own security frameworks and strategies for the secure development, deployment, and engagement of AI systems while managing and mitigating the associated risks.
2.1.1 Core frameworks and guidelines
Guidelines and frameworks developed by the National Institute of Standards and Technology (NIST), The MITRE Corporation, and Open Worldwide Application Security
Project (OWASP) are widely referenced and adopted into the security guidelines and frameworks of many organizations.
NIST developed many cybersecurity standards, guidelines, best practices, and other resources to meet the needs of industries, federal agencies, and the broader public like the Cybersecurity Framework 2.0 (CSF) [43]. Specific to AI, the NIST AI Risk Management Framework (AI RMF) [30] helps organizations identify risks presented by AI systems and provides recommendations to address them across four core functions: Govern (policies, culture, and oversight), Map (risk identification), Measure (risk analysis and tracking), and Manage (risk prioritization and mitigation). In addition, the NIST Trustworthy and Responsible AI report [37] provides a taxonomy of concepts, definitions, and terminology encompassing key Machine Learning (ML) methods and details Adversarial ML (AML). Organizations and entities may refer to the taxonomy and terminology of attacks, encompassing both Predictive AI (PredAI) and Generative AI (GenAI), and mitigation strategies of AML.
Similarly, OWASP aims to enhance the security of software and relevant applications through various community-led open-source projects with many of them relevant to AI systems. The OWASP Machine Learning Security Top Ten [44] lists the top ten security issues of ML systems and the OWASP Top 10 for Large Language Model Applications [45] identifies critical security vulnerabilities of LLM in real-world applications. The OWASP AI Exchange [46] is a community-led compilation of state-of-the-art topics and global discussion on the security and privacy of all types of AI and data-centric systems. An extensive framework details threats, controls, and best practices for secure, private AI usage. It encompasses topics on the principles and requirements of different international legislations, security, and privacy standards and how they would apply to AI systems. The OWASP AI Exchange helped develop the EU AI Act [47], ISO/IEC DIS 27090 [48], and 27091 standards [49]. The OWASP GenAI Security Project [50] is also a community-driven, open-source project that directs stakeholders to resources to better identify, mitigate, and document security and safety concerns of GenAI applications and systems.
Lastly, the National Cybersecurity Federally Funded Research and Development Centers, operated by The MITRE Corporation, investigates cybersecurity challenges surrounding AI, IoT, Zero Trust, and Space to provide secure technologies and to improve the cybersecurity posture and protect sensitive data and systems across industry and government. A key contribution being the MITRE ATT&CK resource center that details real-world adversary tactics and techniques [51]. The MITRE Adversarial Threat Landscape for Artificial-Intelligence Systems (ATLAS) is a knowledge repository for AI systems [52]. ATLAS informs stakeholders of realistic threats that real-world adversaries pose to AI systems.
2.1.2 Global, international entities, and consortiums
Global and international entities came together for dialogue and established directives and approaches to address concerns regarding the secure AI systems development and usage. They provide consensus and influence across countries and regions.
The Hiroshima AI Process (HAIP) [53] launched in May 2023 at the G7 Hiroshima Summit. The HAIP Comprehensive Policy Framework came into fruition from the discussions of the G7 Digital & Tech ministers. Endorsed by the G7 Leaders, the HAIP Comprehensive Policy Framework is expected to support a diverse range of actors, expanding multiple governments, sectors, academia, and society. Key resources of the framework include the Hiroshima Process International Guiding Principles and Code of Conduct for Organizations Developing Advanced AI System and Guiding Principle for All AI Actors [38–40]. The global governance initiative emphasizes innovating opportunities in AI systems while mitigating risks and challenges. It aims to boost safe and secure AI, citing 11 principles for the design, development, deployment, provision, and use of AI systems.
The Organization for Economic Co-operation and Development (OECD) AI Principles [54] offer a base for international cooperation and interoperability that policymakers can adopt for the development and deployment of innovative and trustworthy AI. Five values-based principles that advocate innovative and trustworthy AI, honoring human rights and democratic values. There are also five inter-complementing recommendations for policymakers to promote long-term public and private investments for interdisciplinary research and development for an inclusive, open, and trustworthy digital ecosystems with interoperable governance, policies, regulatory frameworks, and assessment mechanisms to prepare and transform international markets through skill and competence building, collaboratively with consensus-driven initiatives across governments and stakeholders. The OECD also launched a global framework to monitor the application of the HAIP Code of Conduct [40].
National level security agencies also jointly produced cybersecurity information and reports to provide guidance for the design, development, and use of AI systems. These agencies are not limited to the National Cyber Security Centre (NCSC) of the United Kingdom, the Australian Signals Directorate (ASD), the United States' National Security Agency's Artificial Intelligence Security Center (NSA AISC). Guidelines for secure AI system development [35] details four key focus areas of the AI SDLC: secure design, secure development, secure deployment, and secure operation and maintenance. It emphasizes the concept of secure by default, stresses taking responsibility for customer security, being open and accountable, and organizing teams and leadership so that security is treated as a top business priority. The Engaging with Artificial Intelligence publication [36], however, focuses on the use of AI systems. It compiles threats to AI systems and mitigations for organizations to address risks while interacting with these systems. The Deploying AI Systems Securely report [34] shares best practices for deploying secure and robust AI systems. It aims to strengthen the security of AI systems and environments with proper management of known vulnerabilities and weaknesses, leverage methodologies, and controls to address malicious activities that target AI systems and relevant data services for secure deployment, operation, and maintenance of AI systems. The AI Data Security information sheet [55] provides an overview of data security for the development, testing, and operation of AI systems throughout the AI SDLC. It describes best practices to secure data, data supply chain risks, maliciously modified data, and data drift and corresponding mitigation strategies. It focuses on principles to protect sensitive, proprietary, or mission critical data and to provide a solid foundation for the security of AI data and ensure the reliability of AI systems.
The European Union Agency for Cybersecurity (ENISA) promotes cyber resilience, safeguards communication and data, and keeps online society and economy secure. ENISA has produced the framework for good AI cybersecurity practices (FAICP) [56] that advises national competent authorities, stakeholders, and communities on steps to secure AI systems, operations, and processes through known best practices. It is segmented into three layers. The cybersecurity foundations layer details basic cybersecurity knowledge and practices for Information Communication Technologies (ICT) environments that host AI systems. The AI-specific cybersecurity layer details cybersecurity practices applicable throughout the AI systems, components, and SDLC. The sector-specific cybersecurity for AI layer details best practices to secure AI systems from sector specific threats. ENISA is additionally supported by the EU's Cybersecurity Act [57] which has established the cybersecurity certification framework [58] for ICT products and services referencing standards and methodologies to evaluate the security of ICT assets hosting AI components.
The EU AI Act [47] is the European regulation on AI. It assigns risk categories to AI systems. Prohibited AI systems have unacceptable risks that can negatively influence decision making, infer sensitive information, and heavily impact security, safety, and privacy. Certain systems that are employed in use cases such as biometrics and critical infrastructure are classified as high-risk, whose providers are required to have proper management of data and risks, and to ensure the quality and performance of the AI system. It inclines undergoing third-party compliance assessments. There are also General Purpose AI (GPAI) models and systems. GPAI models are trained with extensive amounts of data to perform generic tasks, which can be used directly or integrated into other AI systems to serve a variety of purposes. GPAI providers need to provide sufficient informational and technical documents detailing the training and testing process with evaluation results detailing their capabilities and limitations. Cybersecurity protection must be established, evaluated, and assessed by the ability to mitigate possible systemic risks of GPAI with tracking, documentation, and reporting capabilities. The Guidelines for GPAI Models [59] details information on the definition and scope of GPAI models, obligations over the GPAI model lifecycle, significance resulting from systemic risk, and communication responsibilities of providers. The Code of Practice [60] provides a framework for developers of GPAI to adjust to the EU AI Act. Specifically in the areas to promote Transparency, ensure alignment to Copyright laws, and factors for the Safety and Security of the GPAI models and systems.
The ASEAN Guide on AI Governance and Ethics [61] can be adopted into organizational and governmental agency practices to design, develop, and deploy AI systems in a responsible manner. It describes guidelines, provides recommendations, and details seven guiding principles for the AI Governance Framework to promote care for AI technologies and systems. It recommends that AI systems be transparent and explainable for users to understand and be confident in decisions and recommendations put forth by AI systems and to make informed decisions with sufficient documents from developers and deployers. AI systems should also be fair and equal such that algorithmic decisions do not result in unjust impacts, unfair biasness, or discrimination. Mechanisms are in place to identify, evaluate, and address any risks for the safety and security of AI system, including attacks performed by malicious adversaries, and for humans to mediate when needed. In addition, mechanisms that ensure the privacy and governance of data throughout the AI system lifecycle. It also recommends periodical reviews of data protection laws, data governance policies and legislation, and ethical principles as appropriate to accommodate the wellbeing and benefit of human society. It asks developers and deployers to be accountable and act with integrity, for AI systems to function properly and are compliant. AI systems should be robust, reliable, and perform consistently even under complex and unknown conditions. The Guide's AI Governance Framework shares key areas that organizations should consider for the responsible use of AI. It suggests incorporation of existing or new internal governance structures and measures to guide the design, development, and deployment of AI systems, assess risks associated with AI-augmented decision-making functions and determine the appropriate level of human involvement, manage underlying tasks associated with AI system operations, and establish appropriate channels to manage communications, interactions, and relationships with stakeholders. Lastly, the Guide considers national and regional level recommendations for policymakers in ASEAN and encourages the alignment and interoperability of AI frameworks across jurisdictions within the region.
The Cyber Security Agency of Singapore (CSA) developed Guidelines on Securing AI Systems [29] for the secured use of AI systems throughout their lifecycle. It helps identify potential security risks and provide mitigating strategies that can be applied throughout the five key stages of the AI SDLC: planning and design, development, deployment, operations and maintenance, and end of life. A Companion Guide on Securing AI Systems [32] was also developed alongside as a community-driven resource, with practical security control measures to support system owners to secure their AI systems.
Safety and security of AI systems are of global interest. There is great significance in testing tools that assist AI developers, systems owners, and stakeholders to ensure secure development and usage of AI systems.
2.2 AI systems and associated attacks
AI systems can be categorized into two main branches [37]. One, PredAI that comprises models like logistic regression, support vector machines (SVM), and convolutional neural networks (CNN), learn decision boundaries to differentiate between classes. Second, GenAI comprises models like generative adversarial networks (GANs), generative pretrained transformers, diffusion models, and multi-model content generation, learning to generate diverse types of content and media. It is important to note that attacks may overlap and apply across both branches of AI systems.
2.2.1 Adversary goals and capabilities
Attacks aim to compromise the availability, integrity, and privacy of AI systems [37]. Attacks on availability affect robustness and performance, can include poisoning attacks in which adversaries have some level of control over the training dataset or model. Attacks on integrity affect the outputs of AI systems and models, causing them to react incorrectly. They include evasions and poisoning attacks in which adversaries create adversarial examples to induce misclassification. Attacks on privacy can leak sensitive information about the training data or model such that adversaries may be able to reconstruct, infer data used to train a model, or learn properties, architecture, or parameters regarding a model. Adversaries may also seek to abuse and repurpose AI systems for their own agenda in a way that violates their original intended use.
Adversaries exhibit various capabilities at different phases of AI systems and models. During the training phase, adversaries may seek to control a subset of the training data or the model. Therefore, degrading the availability and integrity of AI systems and models. Adversaries can poison training data by inserting their own or modifying it and influence model parameters by embedding malicious functions in the AI system. In more realistic scenarios, adversaries may have limited access to some labels or not be able to directly manipulate the labels used to train AI systems and models as demonstrated in clean-label poisoning attacks.
During the testing and deployment phase, adversaries may seek to control testing data by adding perturbations to testing samples to generate adversarial examples when gaining access to queries submitted to AI systems and models. Adversaries can use adversarial examples to incite behaviors that compromise availability, integrity, and privacy. They can induce the AI system or model to misclassify or activate backdoors. Adversaries may seek to take control of the resources and source code that are passed to AI systems and models to influence their behavior. Access to and knowledge of AI systems and models also influences the adversaries' capabilities to conduct attacks in a white-, black- or gray-box setting.
2.2.2 Attacks on Predictive AI
PredAI systems can be modeled as a generalized data processing pipeline that follows a primitive sequence of operations across the training and development, testing and deployment phases [37]. In both phases, the AI system receives input data from a source, input data is preprocessed for the AI system, and AI model receives the processed input data. During the final output, a trained AI model is produced in the training and development phase, while the AI model produces actionable outputs in the testing and deployment phase. Numerous attacks can occur at different operation sequences across both phases and negatively impact the resulting AI system. The AI system is susceptible to poisoning attacks during training time while being susceptible to evasion and privacy attacks during testing and deployment time.
Poisoning attacks are when adversaries interfere during training time to poison data or the model. They affect the availability and integrity of AI systems and models, including input manipulation, availability poisoning, targeted poisoning, and backdoor poisoning attacks.
Evasion attacks are the most common type of attack, where adversaries provide malicious inputs or adversarial examples to trick the AI system to misinterpret or misclassify the input data by some arbitrary class of choice. In the white box setting, adversaries aim to minimize perturbations and support multiple distance metrics to optimize adversarial example generation. In the black box setting, adversaries can only query the AI system on various data samples with information about settings or past inputs. In a more restrictive setting with less access to information, decision-based attacks only use the final predicted labels of the model. Transferable attacks are when adversarial examples generated for a substitute model can be transferred to a target model given some intersecting decision boundaries for adversarial subspaces with higher dimensionality.
Privacy attacks try to gain as much knowledge as possible about the AI system and model in a way that violates privacy of the information being learned. This ranges from information pertaining to the data used in training to information regarding the AI system and the models themselves. Privacy attacks include membership inference, data reconstruction, property inference, and model extraction attacks.
2.2.3 Attacks on Generative AI
In GenAI, challenges associated with the security and privacy of LLMs have become increasingly dire. Alongside associated vulnerabilities and challenges that encompass attacks on AI and non-AI inherent model vulnerabilities, and on the different modules of LLMs. Das et al. reviewed the security and privacy challenges across nine representative attack and defense mechanisms on LLMs [62]. On top of attacks on PredAI systems, the NIST AI 100-2 E2025 report [37] gives attention to additional categories of attacks relevant to GenAI systems. Where attacks can be linked to more multiple attack classes to achieve different attacker goals.
Supply chain attacks take note of the inherited software supply chain risks and exploits artefacts relevant to specific data-based statistical properties of AI systems. They include poisoning attacks that try to insert backdoors into pre-trained models. This assumes attackers with more access to knowledge, and control of their targeted AI system and possess the necessary resources to execute and accomplish the attack. For example, Yan et al. devised a Virtual Prompt Injection backdoor attack that allows the model to make a designed response in specific departure scenarios while behaving normally in other scenarios [63]. Attackers can guide a model without any explicit injection of the model's inputs.
Direct prompting attacks mainly focus on the input and output layers of GenAI models and do not normally target the internal structure. They do not involve internal modification of the model, require lower hardware demands, and are widely implemented by GenAI testing tools. For example, the DAN (Do Anything Now) [64] attack module from the GenAI offensive testing tool Garak is a type of prompt injection technique to bypass the ethical constraints of GenAI models in black-box settings. The attack tries to convince the GenAI model to ignore the preset restrictions for unrestricted answers with tweaked prompts.
Indirect prompt injection attacks assume third party attackers can manipulate system relevant resources without directly interacting with the GenAI system. Attacks on availability can disrupt the legitimate use of GenAI system. Attacks on integrity can influence GenAI systems to subtly deviate from its usual behavior, or to maliciously perform attacker-specific tasks, becoming untrustworthy. Attacks on privacy can lead to indirect leaking information of interconnected systems and can persuade end-users to share potentially sensitive information.
Attacks that require an attacker to have a deep understanding of the model's mechanisms complicate their integration into existing GenAI testing tools. Therefore, most attack tools tend to focus on attack techniques with broader applicability like direct prompting attacks.
2.3 AI security testing tools
In response to the ever-evolving threat landscape and continuous effort that explores the security and attacks on AI [37, 62, 65], AI security testing tools are further developed and updated. AI security testing tools are designed to detect weaknesses in AI systems by simulating adversarial attacks and tend to focus on either PreAI or GenAI models [32]. PredAI security testing tools provide AI system and model developers with comprehensive attack libraries that include tests for evasion, poisoning, and membership inference attacks [41, 66–69]. Tools may also cater to AI systems and models across a range of data modalities including image, tabular, audio, and video. GenAI, on the other hand, centers around generative models that learn to generate diverse types of content and comprises generative adversarial networks, generative pretrained transformers, and diffusion models. GenAI security testing tools encompass attacks like prompt injection, jailbreaking, and data leakage [23, 70, 71]. AI systems and models are probed with carefully crafted prompts to elicit malicious or harmful responses.
2.4 Related works
To the best of our knowledge, Brokman et al. presents the only work that focuses specifically on the evaluation of AI security-testing tools [28]. Their study provides an objective comparison of popular open-source AI red-teaming scanners, assessing both the diversity of their attack methods and their overall effectiveness. In contrast, this work takes a unique perspective by analyzing existing guidelines and frameworks to identify the necessary characteristics of AI security-testing tools. This forms a more comprehensive and evidence-based understanding of what such tools should encompass outlined in existing guidelines and frameworks. Organizations can consider and adopt these desirable features to determine which AI security testing tool best suits their use case. They include attention to the inclusion of comprehensive reports that detail the tests that were conducted, any vulnerabilities that were discovered, and respective mitigation strategies.
3 Guidelines analysis
In this section, we analyzed seven guidelines and their recommendations to map how AI security testing tools can contribute to realizing some of these recommendations. We also identified several desirable features that should be examined in AI security testing tools from our analysis.
3.1 Map applicability of AI security testing tools to guidelines
Several frameworks and guidelines shared in Section II refer to security considerations for each stage of the AI SDLC. CSA's Companion Guide on Securing AI Systems [32] and NCSC's Guidelines for secure AI system development [35] describe the four main stages of the AI SDLC. In planning and design stage, AI security testing tools can be leveraged to help understand any threats, risks, and potential impacts associated with the design of the AI system. In the development stage, the focus of threats, risks, and potential impacts shifts from the design to the supply chain, AI related assets, development environment, and even technical debt. In the deployment stage, there is emphasis on the continuous integration/continuous delivery (CI/CD) pipeline. Here, AI security testing tools should support the efforts in securing the deployment infrastructure of AI systems, its continuous management, and the responsible release of AI systems. These include security checks and evaluations before the release of AI systems and components, to assist end users in performing self-assessments, and to provide advice on the appropriate use of the AI system and components. In the operation and maintenance stage, AI security testing tools do not actively support monitoring AI systems inputs, outputs, and behavior. However, they can be used to help identify potentially malicious inputs, unsafe outputs, and behaviors that were identified in the previous stages of the AI SDLC, such as automated generation of additional guardrails to mitigate known successful attacks. However, newly identified vulnerabilities can be integrated into AI security testing tools for future assessments. CSA's Companion Guide on Securing AI Systems [32] also describes a fifth stage to ensure measures are in place for the disposal and destruction of AI related components such as data and models. CSA's Guidelines on Securing AI Systems [29] also detailed measures and controls relevant to each stage of the AI SDLC.
ASD's Engaging with Artificial Intelligence [36] provides guidance on engaging with AI systems, highlighting important threats and steps for managing risks. Whereby AI security testing tools can be applied across mitigation considerations for organizations. AI security testing tools can be used to assess the effectiveness of cybersecurity mitigations implemented by the organizations relevant to its jurisdiction to ensure that their AI systems are properly secure. Logging and monitoring mechanisms can also be assessed. Organizations can also evaluate incident response plans for business continuity of their AI systems. The tools can also help with the trial of an AI system, to help organizations learn about the AI system, and to test the limits and constraints in a separate environment before its integration. Apply the secure-by-design principle across the AI supply chain, identify and assess the threats and risk of components and assets associated with the AI system.
The NSA AISC's joint Cybersecurity Information Sheet Deploying AI Systems Securely [34] describes best practices and controls to deploy AI systems securely. They include securing deployment environments, continuously protecting the AI system, and securely operating and maintaining AI systems. Deployment environments need to be secured through governance with the relevant security standards and requirements to promote collaboration. Security controls are in place to ensure that the deployment environments, both architectures and networks, are properly protected, hardened, and robust. AI security testing tools can assess and evaluate deployment environments accordingly. Assessments and evaluations can be conducted throughout the AI SDLC for continuous protection of AI systems. They validate AI systems, AI supply chain, AI artifacts, and assets such as testing protection mechanisms that secure exposed
APIs, actively monitor AI system, and model behavior, and protect model weights. AI security testing tools can also be applied during operation and maintenance by both internal and external entities, to assess potential vulnerabilities and weaknesses. Such assessments can be in the form of audits and penetration tests. Assessment results can prompt stakeholders to take any necessary actions and respond in a timely manner. For example, pushing updates and patches regularly. The Hiroshima Process International Guiding Principles for Organizations Developing Advanced AI System [38] describes eleven guiding principles for the design, development, deployment, provision, and use of AI systems. On top of the AI SDLC, AI security testing tools should also foster collaborative efforts to secure the AI ecosystem. It is important to publicly share information such as technical reports, instructions of use, and any relevant documentation or materials in a responsible, transparent, and meaningful manner. Relevant stakeholders can gain insights to perform any action needed to properly secure their AI systems and solutions. This encourages efforts to secure the AI ecosystem for global benefit, including the development of secure AI systems and solutions, AI security testing tools, and even international technical standards.
The Infocomm Media Development Authority (IMDA) of Singapore proposed two Model Governance AI Frameworks. Although the frameworks are namely for AI governance, they include some principles that are also applicable to AI security testing. The Model AI Governance Framework [31] contains eleven AI ethical principles that can be incorporated for the assessment of AI models. The AI Verify [41] toolkit helps streamline the testing process to ensure user awareness for informed decision making. It also assesses the operations and results of AI systems and solutions. Consequently, the Model AI Governance Framework for Generative AI [33] proposes nine dimensions for GenAI for the construction of comprehensive trustworthy AI systems. The frameworks complement the AI ecosystem to foster trusted development, and are aligned with internationally recognized frameworks, such as the EU AI Act [47] and OECD [42]. The AI ethical principles and dimensions provide various aspects to consider, test, and evaluate by leveraging AI security testing tools.
3.2 Desirable features of AI security testing tools
The technical documents and guidelines described in Section II-A share some similarities and differences in recommendations and views on the security of AI systems and components across the AI SDLC. We extracted statements from the guidelines such as "Red teaming should be an open and transparent process" and other implied ideas like comparing the integration capabilities of tools. We then grouped similar evidence into eight categories, which we identified as the eight desired features of AI security testing tools:
- Accessibility and Transparency: This feature considers whether AI security testing tools are openly accessible and transparent. Potential adopters can inspect the tools to learn of their inner workings before integrating them into part of an organization's security framework. While this is straightforward for open-source distributions where source code is freely available, users of proprietary tools must rely
on information provided by the developers or conduct trials to evaluate the capabilities and usefulness of the tool. NIST RMF [30] advises the red teaming methodology to be an "open and transparent" process. Many guidelines comparing popular red teaming tools also evaluate the tool's licensing approach [32, 72, 73]. However, transparency can be a double-edged sword: while adopters can examine the tools to assess their trustworthiness, attackers can do the same to identify weaknesses and bypass detection.
-
Standardization: This feature considers how testing tools align with security best practices and RMFs. Many frameworks [30, 32] and regulations [47] recommend or stipulate methodologies to secure and manage an AI system, and this feature considers how well the tool can help organizations satisfy such requirements. Some other frameworks [45, 52] instead provide a formal taxonomy of definitions, and this feature also evaluates the tool's ability to utilize them. Following standardization helps organizations objectively assess their security posture while satisfying mandatory compliance requirements. For example, CSA's Companion Guide on Securing AI Systems [32] recommends that the risk assessment be conducted in accordance with applicable industry standards; IMDA's Model AI Governance Framework for Generative AI [33] encourages organizations to follow common benchmarks and methodologies in a systematic manner to provide more consistent and comparable results; OWASP's GenAI Red Teaming Guide [73] considers benchmarking against industry standards to be good practice. However, different organizations have different security postures, hence the organization should also consider the scope and coverage of the testing tools that are relevant to its security policies.
-
Evidence Gathering and Documentation: This feature evaluates the tool's efficacy in gathering evidence and generating documentation. More specifically, we assess the assessment report's level of detail (e.g., timestamps, prompt-response pairs) and its organization. A comprehensive report is essential for effective stakeholder communication [32]. Furthermore, providing evidence throughout every stage of development and deployment lifecycle is a mandatory requirement for regulatory compliance [47, 74].
-
Automation and Integration: This feature considers the tool's ability to automate assessments of the AI system and model throughout the AI SDLC as required by the organization. It also considers the tool's integration capabilities, since effective automation depends on how well the tool can operate within the existing infrastructure. The ability to automate assessments lets organizations delegate resources to other aspects of the AI SDLC. More specifically, as assessments should be conducted on a regular basis [32, 34, 73, 75], automation can significantly reduce the human resources needed and the risk of human error inherent in manual processes, enabling organizations to scale the operation efficiently.
-
Models, Modality, and Threat Coverage: This feature considers the types of AI systems, models (generative or predictive), data (such as images or texts), and risks that can be assessed by the testing tool. Many testing tools specialize in particular model types, with a lack of tools evaluating multi-modal models [33]. However, it is still good practice to perform multi-modal vulnerability analysis [73]. Even within the supported modality, tools should also maintain diverse and up-to-date test cases
covering different threats [73], such as MITRE ATLAS [52] or OWASP Top 10 for LLM [45] in LLM case. Regardless, limited scenario coverage is not necessarily an indicator of poor quality, as providers may deliberately prioritize the scenarios most relevant to their specific use cases. Organizations should therefore select testing tools that are relevant to their requirements [76].
-
Assessment Environments: This feature considers environments in which the testing tool performs assessments. More specifically, organizations should consider whether the tool supports on-premises deployment or can only be hosted remotely. In many cases, on-premises deployment model entails higher prices except for open-source tools; however, they might be the only viable option for organizations with strict data governance policies. Moreover, different deployment models allow different testing approaches; remotely hosted tools typically only support black-box testing, whereas on-premises deployments may also permit white-box or grey-box testing. Black-box testing is more suitable for organizations with strict regulatory constraints and offers a more accurate simulation of an attacker's perspective, while white-box testing allows greater visibility and enables more effective detection of issues [32].
-
Activity and Updates: This feature considers the events and activities relevant to the continued improvement and development of the testing tool. Testing tools should be updated as new vulnerabilities and attacks are discovered [30, 73, 75]. This instills confidence in the capabilities of the testing tool to perform comprehensive assessment on the AI system and model. Additionally, an active community implies relevance and usefulness of the tool to its user base. Users may also request developers to incorporate features into the future releases of the tool.
-
Effectiveness: This feature considers its accuracy in detecting threats rather than coverage. A tool with high false-positive or false-negative rates offers limited practical value, even if its other characteristics align well with the desired features defined above. Regardless, subjectivity in effectiveness evaluation remains a concern. To the best of our knowledge, currently there is no standardized benchmark for evaluating these tools, such as a benchmark set of vulnerable AI models. We attempted to address this through experiments on open-source tools against the same models. As a supplementary remark, following the “Standardization” desired feature, the tool’s benchmarking result should be measured with respect to a well-recognized existing taxonomy of threats or attacks from MITRE ATLAS [52] or NIST AI 100-2E2025 [37] to provide an objective evaluation of the tool, since different tools most often categorize their techniques differently.
4 Metrics
In this section, we examine how the proposed desirable features relate to the various metrics used in existing guidelines for comparing red-teaming tools, as well as the effectiveness of each criterion. Table 1 summarizes the metrics from a few guidelines and the relevant desired feature.
Table 1: Mapping of metrics to desired features
| Guidelines | Quantity | Relevant desired features |
|---|---|---|
| Generative AI and Agentic Security Solutions Landscape (OWASP) [77] | Type (Open Source / Proprietary) | Accessibility and Transparency |
| Gen AI / LLMSecOps | Models, modality and threat coverage | |
| Top 10 for LLM Risk Coverage | Models, modality and threat coverage | |
| GenAI Red Teaming Guide (OWASP) [73] | Licensing Approach | Accessibility and Transparency |
| Insights and Current Gaps in Open-Source LLM Vulnerability Scanners: A Comparative Analysis [28] | Attack Type | Models, modality and threat coverage |
| Guardrails Interface Support | N/A | |
| Multi-language Support | Models, modality and threat coverage | |
| Customizable Attacks Support | N/A | |
| Automated Customization Support | N/A | |
| Evaluation Result Explainability | Evidence Gathering and Documentation | |
| Insecure Coding Tests Support | Models, modality and threat coverage | |
| Volume of Attack Instances | Effectiveness | |
| Attack Success Rate | Effectiveness | |
| Margin of Error | Effectiveness | |
| AI security testing (OWASP AI Exchange) [78] | Licensing | Accessibility and Transparency |
| Providing Mitigation | N/A | |
| API Availability | Automation and Integration | |
| GitHub Stars | Activity and Updates | |
| GitHub Forks | Activity and Updates | |
| Number of Issues | Activity and Updates | |
| Trend | Activity and Updates | |
| Active Issues | Activity and Updates | |
| Documentation | Activity and Updates | |
| Discussion Forums | Activity and Updates | |
| GitHub Contributors | Activity and Updates | |
| Framework Support | Automation and Integration | |
| Large-Scale Deployment | Automation and Integration |
| API Availability | Automation and Integration | |
|---|---|---|
| Data Modality | Models, modality and threat coverage | |
| Machine Learning Tasks | Models, modality and threat coverage | |
| Framework Applicability | Automation and Integration | |
| OWASP AI Exchange Threat Coverage | Models, modality and threat coverage | |
| Companion Guide on Securing AI System (CSA) [32] | License TypeModel Type | Accessibility and TransparencyModels, modality and threat coverage |
| Various from Pros & Cons | Models, modality and threat coverage /Activity and Updates /Automation and Integration |
4.1 Accessibility and Transparency
In general, since licensing information is usually publicly available, this feature is straightforward to assess. CSA's Companion Guide on Securing AI Systems [32] classified all non-proprietary tools simply as open source, while OWASP guidelines [73, 77, 78] provide a more granular distinction between licensing types, such as MIT or Apache 2.0.
4.2 Standardization
To the best of our knowledge, existing red teaming tool comparison guidelines do not evaluate a tool's support for standards, although alignment to standards is recommended across various guidelines and regulations. This may be because AI red-teaming is still an emerging area; development efforts tend to prioritize core functionality, such as effectiveness and coverage, over support for standardization. Moreover, many relevant standards are not yet widely adopted; as a result, integrating them into tools may not currently provide sufficient practical value. Few tools provide such support at this stage; hence it is not yet meaningful to use this as a criterion for comparison.
4.3 Evidence Gathering and Documentation
Evidence Gathering and Documentation is rarely used as a comparison criterion in existing guidelines. Only Brokman et al. [28] considers a tool's ability to explain its test case verdicts such as why an attack was deemed successful. Even then, it focuses solely on verdict explainability without considering other relevant evidence such as timestamps or test case inputs. However, most tools evaluated in the later section provided supporting information. This suggests that guidelines omit these aspects simply because they are already commonly provided and thus offer little value for distinguishing between tools. By contrast, the comprehensiveness and readability of an assessment report are hard to evaluate objectively or systematically, making these aspects best left for end users to assess directly.
4.4 Automation and Integration
This feature is assessed through multiple metrics across different guidelines. For example, OWASP's AI security testing [78] evaluates a tool's API availability, its compatibility with major frameworks such as TensorFlow or PyTorch, and its ability to work with different model families such as OpenAI or NVIDIA models. It also considers the tool's scalability, i.e., whether it can support large scale industry deployments or is limited to research environments. This scalability criterion indirectly reflects the tool's automation capabilities, since tools lacking robust automation are unlikely to be deployable at scale. CSA's Companion Guide on Securing AI Systems [32] also assesses the tool's integration capabilities with machine learning framework. Even though the guidelines do not explicitly assess a tool's capability to conduct automated assessments, this can often be inferred from its integration features. While open-source tools rarely include built-in automation, having a CLI interface is usually sufficient for integration into existing CI/CD pipelines for automated assessments.
4.5 Models, Modality, and Threat Coverage
This feature is among those most emphasized by existing guidelines in tool comparisons. OWASP's Generative AI and Agentic Security Solutions Landscape [77] maps tools to lifecycle operations using its LLMSecOps taxonomy (e.g., Agent Scanning, Sandboxed Testing) and coverage of the Top 10 LLM Risks. [78] evaluates supported target modalities (e.g., text, image), machine learning tasks (e.g., object detection), and coverage of a different threat taxonomy. CSA's Companion Guide on Securing AI Systems [32] focuses on supported model types such as LLMs or CNNs. Brokman et al. [28] reviews supported attack types and whether tools handle multi language inputs or coding tests. It is evident that the effectiveness of the metrics depends on the quality of the taxonomy it is based on, as a poorly defined taxonomy renders the metrics ambiguous and ineffective. Furthermore, because each guideline employs its own threat taxonomy - with overlapping, merged, or slightly differing definitions - there is a clear need for a widely adopted and commonly agreed upon taxonomy.
4.6 Assessment Environments
None of the guidelines examined evaluated how a tool can be deployed. That said, this aspect is generally straightforward to assess. Open-source tools are typically deployable on-premises, while deployment information is typically available on the vendor's website through their pricing plans, or can be obtained by contacting the vendor directly if not. Another aspect the end user needs to evaluate is whether the tool operates in a white box or black box manner, which typically requires reviewing the tool's documentation. In some cases, it may be useful to further break down the specific information about the target model that the tool can access, including the model's weights, the LLM's token level output probabilities, or simply its generated text, when assessing its capabilities.
4.7 Activity and Updates
This feature receives only moderate attention across the guidelines. In CSA's Companion Guide on Securing AI Systems [32], it is not assessed through a formal metric but rather is mentioned only as a drawback of tools that show low development activity. In contrast, OWASP's AI security testing [78] provides a more detailed evaluation using several GitHub-based indicators, such as stars, number of active issues, and number of contributors. While these metrics serve as useful signals of an open-source project's popularity and development activity, they can, in rare cases, be artificially inflated through bots. Moreover, GitHub metrics apply only to open-source tools and not commercial products, although some vendors do offer an open-source edition. For commercial tools, alternative indicators can include vendor revenue or release/update frequency and may be used to assess activity and adoption. It is also important to note that it is neither feasible nor meaningful to apply a single unified metric to compare open source and commercial tools such as release frequency, as they operate under fundamentally different business models.
4.8 Effectiveness
Although effectiveness is as critical as any other feature since an ineffective tool remains ineffective regardless of its integrability or threat coverage, only Brokman et al. [28] attempts to evaluate it, and only within the context of LLM red teaming. This is likely due to the difficulty of measuring effectiveness objectively and consistently with minimal manual effort. In Brokman et al. [28], effectiveness is assessed using three metrics: volume of attack instances referring to the number of attack prompts, attack success rate reflecting the proportion that successfully compromise the model, and a manually estimated margin of error that accounts for misclassifications by automated verdicts, which require human review to estimate.
However, these metrics are inadequate for evaluating a tool's true effectiveness. First, the volume of attack instances does not reliably indicate diversity as many prompts may be highly similar. Beyond a certain threshold, additional samples merely yield diminishing returns and consume unnecessary resources. Furthermore, volume is not well-defined for multiturn attacks, or LLM generated prompts, where the number of queries is configurable. Second, attack success rate is heavily dependent on the dataset and prompts generated at runtime. A tool that repeatedly exploits the same vulnerability will attain a high success rate. What end users care about instead is the range of distinct attack approaches the tool can successfully execute. Thus, success rate should be measured per technique category while referring to a taxonomy [37] and not per test case. Finally, estimating margin of error demands substantial manual effort and remains subjective and error prone. A panel of LLM judges could replace manual evaluation, which should be feasible given the simplicity of the judgment task and the capability of modern LLMs.
5 Experimental Setup
We examined the proposed desired features used to evaluate red-teaming tools, and its effective it is in comparing tools.
5.1 Models
We employed the following open-source models from Ollama's library [79] for our experiments. We did not quantize any of the models for the experiments.
-
Llama 4-Scout-17B-16E-Instruct [80]: Llama 4 Scout is a model with 17 billion active parameters and 16 experts. It is a multimodal model and is more powerful compared to previous Llama models, with a context window of 10M.
-
Llama 3.2-3B-Instruct [81]: It supports a context length of 128K tokens and is fine-tuned for use cases like assistant-like chat and agentic applications like knowledge retrieval and summarization.
-
Llama 2-7B-Chat [82]: This model is created through supervised fine-tuning of pre-trained Llama 2 for chat use cases. It has a context length of 4096 tokens and is fine-tuned on over 1 million human annotations.
-
Vicuna v1.5 [83]: Vicuna is a chat assistant trained by fine-tuning Llama 2 on user-shared conversations collected from ShareGPT. We used the 13B version which has a context length of 4096 tokens.
-
DeepSeek v2-16B-Lite-Chat [84]: DeepSeek-V2 is a Mixture-of-Experts (MoE) language model characterized by efficient training and interference. The Lite-Chat version has a context length of 32k tokens and is fine-tuned for chat use cases.
-
Mistral 7B-Instruct-v0.3 [85]: It is an instruction fine-tuned version of Mistral-7B-v0.3. It supports a context window of approximately 32k tokens.
5.2 AI Security Testing Tools
The following open-source tools were used for our experiments.
- AgentFence [22]: AgentFence is an open-source AI security testing framework that detects vulnerabilities in AI agents. It enables testing against predefined security probes and covers vulnerabilities such as prompt injection, role confusion, and system instruction leakage. It supports popular AI SDKs such as LangChain and OpenAI. Version 0.1.0 was used for experiments.
- Garak [23]: Designed by NVIDIA, Garak performs red teaming and evaluation of GenAI systems. It aims to determine whether a language model can be misled into producing undesired outcomes. Garak systematically probes for vulnerabilities such as hallucinations, data leaks, prompt injections, misinformation, generation of toxic content, jailbreaks, and a variety of other weaknesses. It assesses the model using a multitude of plugins and hundreds of probing techniques. Version 0.12.0 was used for experiments.
- Giskard [24]: Giskard is an open-source library written in Python that detects performance, bias, and security issues in AI applications. The library covers RAG agents as well as traditional ML models for tabular data. It flags issues such as harmful content generation, hallucination, prompt injections, and sensitive information disclosure. Version 2.17.0 was used for experiments.
- Promptfoo [25]: Promptfoo is an open-source tool for automating LLM evaluation. It is flexibly designed to work with any LLM provider. It can speed up evaluations with caching, concurrency, and helps score outputs automatically. Version 0.117.5 was used for experiments.
- Prompt Fuzzer [26]: Developed by Prompt Security, Prompt Fuzzer evaluates the robustness of system prompts used in GenAI applications. It includes LLM-based attack simulations and provides a playground chat interface which enables users to repeatedly improve their system prompt and test it against a variety of techniques. Version 2.0.0 was used for experiments.
- Whistleblower from Repello AI aims to infer the system prompt of a GenAI model based on its generated text outputs. The tool is designed based on the work of Zhang et al. [86] but differs from it by leveraging in-context learning on a pre-trained LLM for predicting system prompts. Version 1.1.1 was used for experiments.
6 Experimental results and analysis
6.1 Accessibility and Transparency
All six tools—AgentFence, Garak, Giskard, Promptfoo, Prompt Fuzzer, and Whistleblower—demonstrate high Accessibility and Transparency, as each provides open-source codebases and detailed documentation that allow adopters to fully inspect their internal mechanisms. This collective openness ensures that organizations can confidently evaluate the AI security testing tools operations before integrating them into their security workflows.
6.2 Standardization
Four of the six tools tested do not explicitly align themselves with formal security standards for RMF, offering limited or no documented integration with frameworks such as NIST RMF [30], OWASP [43–46, 50, 72, 73, 77, 78], MITRE ATLAS [52], or the EU AI Act [47]. In contrast, Promptfoo stands out as the only tool that incorporates multiple industry taxonomies and regulatory frameworks into its testing methodology, indicating a significantly higher degree of standardization support than the others. On the other hand, although Giskard does not provide standardization with formal security standards for RMF, their scan reports indicate the AVID taxonomy categories of the detected vulnerabilities that are standardized for the ease of sharing.
6.3 Evidence Gathering and Documentation
All six tools generate detailed test reports containing prompt-response pairs, providing organizations with concrete evidence of system behavior during adversarial testing. This level of documentation strengthens traceability across the AI lifecycle and gives stakeholders clearer visibility into vulnerabilities, making it easier to satisfy regulatory expectations for evidence collection and continuous oversight. However, the format of the report is not standardized. For example, AgentFence reports are via command line interface, while Garak reports are in JSONL and HTML format.
6.4 Automation and Integration
Table 2 and 3 show that integration capabilities vary widely across the tools: AgentFence, Garak, Giskard, and Whistleblower support meaningful integration with external model providers or endpoints, enabling more automated and repeatable assessment workflows. Promptfoo and Prompt Fuzzer lack such integration, making their assessment processes less automated and less consistent across runs. Overall, tools with broader integration support are better positioned to deliver scalable automation and smoother incorporation into an organization's AI SDLC.
6.5 Activity and update
Four of the six tools exhibit strong ongoing development, with Garak, Giskard, Promptfoo, and Prompt Fuzzer receiving regular weekly commits, indicating active maintenance, rapid response to newly discovered vulnerabilities, and a healthy contributor ecosystem. AgentFence and WhistleBlower, while still updated, show less frequent activity, suggesting slower update cycles that may limit their responsiveness to emerging threats compared to the more actively maintained tools.
Table 2 Analysis of open-source tools with respect to desired features
| Tool | Accessibility and Trans- parency | Standardization | Evidence Gathering and Documentation |
|---|---|---|---|
| AgentFence | High (open source + detailed documentation). Moderate for commercial version (has closed source features) | N/A | Generate detailed test report with prompt-response pairs |
| Garak | High (open source + detailed documentation) | N/A | Generate detailed test report with prompt-response pairs |
| Giskard | High (open source + detailed documentation). Moderate for enterprise hub (closed source) | AI Vulnerable Database AVID | Generate detailed test report with prompt-response pairs |
| Promptfoo | High (open source + detailed documentation) | MITRE ATLAS, NIST AI RMF, OWASP, EU AI Act | Generate detailed test report with prompt-response pairs |
| Prompt Fuzzer | High (open source + detailed documentation) | N/A | Generate detailed test report with prompt-response pairs |
| Whistle-Blower | High (open source + detailed documentation) | N/A | Generate detailed test report with prompt-response pairs |
6.6 Effectiveness
As observed, AI red-teaming tools available employ their own system for categorizing the attack types they support. The lack of consistency makes it challenging to compare tools directly. To address this, we propose the creation of a standardized table that records, for each tool, each model, and each attack type grounded by a trustworthy taxonomy, whether the tool can successfully conduct that attack type on the given model.
To initiate this effort, we map the attack type of the six red teaming tools to the NIST AI 100-2 E2025 report [37], which is comprehensive, rigorously peer-reviewed, and widely recognized as a standard reference in the field. Its structured definitions ensure consistency across evaluations and provide a credible foundation for comparing tools in a reproducible manner. After aligning the tools within the NIST report, we observe a predominantly common set of targeted vulnerabilities: prompt injection (NISTAML.018), prompt extraction (NISTAML.035), privacy compromises (NISTAML.03), misuse violations (NISTAML.04), data extraction (NISTAML.038), and misaligned outputs (NISTAML.027). The effectiveness of each tool for each vulnerability is shown in Table 4. This standardization enables more meaningful comparisons across tools. For instance, although both Prompt Fuzzer and Whistleblower include techniques that map to Prompt Extraction (NISTAML.035), Prompt Fuzzer demonstrates significantly greater effectiveness, identifying vulnerabilities in all six models, whereas Whistleblower shows less effectiveness.
Table 3 Analysis of open-source tools with respect to desired features (cont.)
| Tool | Automation & Integration | Activity & Update |
|---|---|---|
| AgentFence | Can integrate with Hugging Face, Ollama, LangChain, OpenAI (for judge) | 51 stars on Github, last updated in March 2025 |
| Garak | Wide range of integration: Cohere (API), Ggml (Local), Hugging Face (API/Local/Private Endpoint), OpenAI (API), Replicate (API / Private Endpoint), Function (Local: self-model), etc. | 7.1k stars on Github, is still having new commit every week |
| Giskard | Can generate NeMo Guardrails. The assessment process is repeatable | 5.1k stars on Github, is still having new commit every week |
| Promptfoo | Has no integration. The assessment process is not repeatable | 10.6k stars on Github, is still having new commit every week |
| Prompt Fuzzer | Has no integration. The assessment process is not repeatable | 636 stars on Github, is still having new commit every week |
| Whistle-Blower | Can integrate with Hugging Face, Ollama, LangChain, OpenAI (for judge) | 151 stars on Github, last updated in October 2025 |
7 Conclusion
AI offers many benefits to organizations, helping to automate decision-making and enhance the efficiency of tasks. The increased adoption of AI also brought concerns of its security as this opens additional attack surfaces. The rise of threats pertaining to AI led to the publication of frameworks and guidelines for the secure development and usage of AI systems. In this study, we examined multiple guidelines to derive eight desirable features that organizations should prioritize when evaluating third-party AI red-teaming tools. We mapped these features to existing comparison metrics to assess their practical applicability and conduct experiments on popular open-source LLM red-teaming frameworks to demonstrate how the proposed features can be utilized. This work hopes to assist organizations in selecting the appropriate AI security testing tool for secure and safe development of AI systems and models.
As future work, the effectiveness, and capabilities of AI defensive security mechanisms can be evaluated to protect AI systems and models against any vulnerabilities and weaknesses. These include defensive techniques and controls such as guardrails that monitor, detect, and mitigate against potentially harmful inputs and outputs from the AI system and model. They can be applied during the preprocessing and postprocessing stages, such as adversarial training, and leverage transformers. This on-going process of identifying and addressing vulnerabilities and weaknesses as organizations attempt to secure and protect their AI systems and models against the ever-evolving threat landscape throughout the AI SDL.
Table 4 Analysis of open-source tools with respect to Effectiveness
| Tool | Agent Fence | Garak | Giskard | Promptfoo | Prompt Fuzzer | Whistle blower |
|---|---|---|---|---|---|---|
| Prompt Injection (NISTAML.018) | 4 | 5 | 6 | - | 6 | - |
| Prompt extraction (NISTAML.035) | 2 | - | - | - | 6 | 0 |
| Misuse Violations (NISTAML.04) | 0 | 5 | - | 6 | - | - |
| Data extraction (NISTAML.038) | 5 | 5 | - | 6 | - | - |
| Misaligned Outputs (NISTAML.027) | - | - | 5 | 6 | 5 | - |
| Privacy Compromises (NISTAML.03) | - | - | 5 | 6 | - | - |
| Compromising connected resources (NISTAML.039) | - | - | - | 6 | - | - |
| Indirect prompt injection (NISTAML.015) | - | - | - | 6 | - | - |
References
[1] IBM: What Is Artificial Intelligence (AI)? https://www.ibm.com/think/topics/artificial-intelligence. Accessed: May 08, 2026 (n.d.)
[2] Grand View Research: Artificial Intelligence Market (2026-2033). https://www.grandviewresearch.com/industry-analysis/artificial-intelligence-ai-market (n.d.)
[3] Brown, T.B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D.M., Wu, J., Winter, C., Hesse, C., Chen, M., Sigler, E., Litwin, M., Gray, S., Chess, B., Clark, J., Berner, C., McCandlish, S., Radford, A., Sutskever, I., Amodei, D.: Language models are few-shot learners. In: NIPS '20, Red Hook, NY, USA, pp. 1877–1901 (2020)
[4] Yang, J., Jin, H., Tang, R., Han, X., Feng, Q., Jiang, H., Yin, B., Hu, X.: Harnessing the power of llms in practice: a survey on chatgpt and beyond. ACM Trans. Knowl. Discov. Data 18(6), 160–116032 (2024) https://doi.org/10.1145/3649506
[5] Li, J., Tang, T., Zhao, W.X., Nie, J.Y., Wen, J.R.: Pre-trained language models for text generation: A survey. ACM Comput. Surv. 56(9), 230–123039 (2024) https://doi.org/10.1145/3649449
[6] Keswani, G., Bisen, W., Padwad, H., Wankhedkar, Y., Pandey, S., Soni, A.: Abstractive long text summarization using large language models. IJISAE 12(12s), 160–168 (2024)
[7] He, Z., Liang, T., Jiao, W., Zhang, Z., Yang, Y., Wang, R., Tu, Z., Shi, S., Wang, X.: Exploring human-like translation strategy with large language models. TACL 12, 229–246 (2024) https://doi.org/10.1162/tacl_a_00642
[8] Wang, J., Chen, Y.: A review on code generation with llms: Application and evaluation. In: 2023 IEEE International Conference on Medical Artificial Intelligence (MedAI), Beijing, China, pp. 284–289 (2023). https://doi.org/10.1109/MedAI59581.2023.00044
[9] Thirunavukarasu, A.J., Ting, D.S.J., Elangovan, K., Gutierrez, L., Tan, T.F., Ting, D.S.W.: Large language models in medicine. Nat Med 29(8), 1930–1940 (2023) https://doi.org/10.1038/s41591-023-02448-8
[10] Zhao, H., Liu, Z., Wu, Z., Li, Y., Yang, T., Shu, P., Xu, S., Dai, H., Zhao, L., Jiang, H., Pan, Y., Chen, J., Zhou, Y., Zhang, Z., Sun, R., Mai, G., Liu, N., Liu, T.: Revolutionizing Finance with LLMs: An Overview of Applications and Insights. arXiv.org. https://arxiv.org/abs/2401.11641v4. Accessed: May 08, 2026 (n.d.)
[11] Van Veen, D., Van Uden, C., Blankemeier, L., Delbrouck, J.B., Aali, A., Bluethgen, C., Pareek, A., Polacin, M., Reis, E.P., Seehofnerová, A., Rohatgi, N., Hosamani, P., Collins, W., Ahuja, N., Langlotz, C.P., Hom, J., Gatidis, S., Pauly, J., Chaudhari, A.S.: Adapted large language models can outperform medical experts in clinical text summarization. Nat Med 30(4), 1134–1142 (2024) https://doi.org/10.1038/s41591-024-02855-5
[12] OpenAI: GPT-4 Technical Report. arXiv (2023). https://doi.org/10.48550/ARXIV.2303.08774
[13] ChatGPT: ChatGPT. https://chatgpt.com/. Accessed: May 12, 2026 (n.d.)
[14] Duarte, F.: Number of CHATGPT users (January 2026). Exploding Topics. https://explodingtopics.com/blog/chatgpt-users (n.d.)
[15] Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., Rodriguez, A., Joulin, A., Grave, E., Lample, G.: LLaMA: Open and Efficient Foundation Language Models. arXiv.org. https://arxiv.org/abs/2302.13971v1. Accessed: May 12, 2026 (n.d.)
[16] Chowdhery, A., et al.: Palm: scaling language modeling with pathways. J. Mach. Learn. Res. 24(1), 240–1132424011436 (2023)
[17] Haan, K.: 22 Top AI Statistics And Trends. Forbes Advisor. https://www.forbes.com/advisor/business/ai-statistics/. Accessed: May 12, 2026 (n.d.)
[18] IBM Newsroom: Data Suggests Growth in Enterprise Adoption of AI is Due to Widespread Deployment by Early Adopters. https://newsroom.ibm.com/2024-01-10-Data-Suggests-Growth-in-Enterprise-Adoption-of-AI-is-Due-to-Widespread-Deployment-by-Early-Adopters. Accessed: May 12, 2026 (n.d.)
[19] Lakshmanan, R.: Over 100 Malicious AI/ML Models Found on Hugging Face Platform. The Hacker News. https://thehackernews.com/2024/03/over-100-malicious-aiml-models-found-on.html. Accessed: May 12, 2026 (n.d.)
[20] Russinovich, M.: Mitigating Skeleton Key, a new type of generative AI jailbreak technique. Microsoft Security Blog. https://www.microsoft.com/en-us/security/blog/2024/06/26/mitigating-skeleton-key-a-new-type-of-generative-ai-jailbreak-technique/. Accessed: May 12, 2026 (n.d.)
[21] Martin, J., Yeung, K.: New Gemini for Workspace Vulnerability. Hidden Layer. https://www.hiddenlayer.com/research/new-gemini-for-workspace-vulnerability-enabling-phishing-content-manipulation. Accessed: May 12, 2026 (n.d.)
[22] AgentFence: AgentFence. https://www.agentfence.ai/. Accessed: May 12, 2026 (n.d.)
[23] Derczynski, L., Galinkin, E., Martin, J., Majumdar, S., Inie, N.: garak: A Framework for Security Probing Large Language Models. arXiv:2406.11036 (2024). https://doi.org/10.48550/arXiv.2406.11036
[24] Giskard: Giskard. https://www.giskard.ai/. Accessed: May 12, 2026 (n.d.)
[25] Promptfoo: Promptfoo. https://www(promptfoo.dev/ . Accessed: May 12, 2026 (n.d.)
[26] Prompt Security: Prompt Fuzzer. https://www_prompt.security/fuzzer. Accessed: May 12, 2026 (n.d.)
[27] Repello-AI: Whistleblower. https://github.com/Repello-AI/whistleblower. Accessed: May 12, 2026 (n.d.)
[28] Brokman, J., Hofman, O., Rachmil, O., Singh, I., Pahuja, V., Sabapathy, R., Priya, A., Giloni, A., Vainshtein, R., Kojima, H.: Insights and current gaps in open-source llm vulnerability scanners: A comparative analysis. In: 2025 IEEE/ACM International Workshop on Responsible AI Engineering (RAIE), Ottawa, ON, Canada, pp. 1–8 (2025). https://doi.org/10.1109/RAIE66699.2025.00005
[29] Cyber Security Agency of Singapore: Guidelines on Securing AI Systems. https://isomer-user-content.by.gov.sg/36/e05d8194-91c4-4314-87d4-0c0e013598fc/Guidelines%20on%20Securing%20AI%20Systems.pdf (n.d.)
[30] Tabassi, E.: Artificial intelligence risk management framework (ai rmf 1.0). Technical Report NIST AI 100-1, National Institute of Standards and Technology (U.S.), Gaithersburg, MD (January 2023). https://doi.org/10.6028/NIST.AI.100-1
[31] IMDA PDPC: Singapore's Approach to AI Governance. https://www.pdpc.gov.sg/organisations/resources/guidance-by-topic/singapores-approach-to-ai-governance. Accessed: May 12, 2026 (n.d.)
[32] Cyber Security Agency of Singapore: Companion Guide on Securing AI Systems. https://isomer-user-content.by.gov.sg/36/3cfb3cd5-0228-4d27-a596-3860ef751708/Companion%20Guide%20on%20Securing%20AI%20Systems.pdf (n.d.)
[33] AI Verify Foundation (AIVF): Model AI Governance Framework for Generative AI. https://www.imda.gov.sg/resources/press-releases-factsheets-and-speeches/factsheets/2024/gen-ai-and-digital-foss-ai-governance-playbook (n.d.)
[34] America's Cyber Defense Agency: Joint Guidance on Deploying AI Systems Securely. https://www.cisa.gov/news-events/alerts/2024/04/15/joint-guidance-deploying-ai-systems-securely. Accessed: May 12, 2026 (n.d.)
[35] UK's National Cyber Security Centre: Guidelines for secure AI system development. https://www.ncsc.gov.uk/collection/guidelines-secure-ai-system-development (n.d.)
[36] Australian Signals Directorate: Engaging with Artificial Intelligence. https://www.cyber.gov.au/resources-business-and-government/governance-and-user-education/artificial-intelligence/engaging-with-artificial-intelligence (n.d.)
[37] Vassilev, A., Oprea, A., Fordyce, A., Anderson, H., Davies, X., Hamin, M.: Adversarial machine learning: A taxonomy and terminology of attacks and mitigations. Technical Report NIST AI 100-2 E2025, National Institute of Standards and Technology (March 2025). https://doi.org/10.6028/NIST.AI.100-2e2025
[38] Hiroshima AI Process: Hiroshima Process International Guiding Principles for Organizations Developing Advanced AI System. https://www.soumu.go.jp/hiroshimaaiprocess/pdf/document04_en.pdf (n.d.)
[39] Hiroshima AI Process: Hiroshima Process International Guiding Principles for All AI Actors. https://www.soumu.go.jp/hiroshimaaiprocess/pdf/document03_en.pdf (n.d.)
[40] Hiroshima AI Process: Hiroshima Process International Code of Conduct for
Organizations Developing Advanced AI Systems. https://www.soumu.go.jp/hiroshimaaiprocess/pdf/document05_en.pdf (n.d.)
[41] AI Verify Foundation: What is AI Verify. https://aiverifyfoundation.sg/what-i-s-ai-verify/. Accessed: May 12, 2026 (n.d.)
[42] Yeung, K.: Recommendation of the council on artificial intelligence (oecd). International Legal Materials 59(1), 27–34 (2020) https://doi.org/10.1017/ilm.2020.5
[43] OWASP Foundation: OWASP Top Ten Web Application Security Risks. https://owasp.org/www-project-top-ten/. Accessed: May 12, 2026 (n.d.)
[44] OWASP Foundation: OWASP Machine Learning Security Top Ten. https://owasp.org/www-project-machine-learning-security-top-10/. Accessed: May 12, 2026 (n.d.)
[45] OWASP Foundation: OWASP Top 10 for Large Language Model Applications. https://owasp.org/www-project-top-10-for-large-language-model-applications/. Accessed: May 12, 2026 (n.d.)
[46] OWASP Foundation: OWASP AI Exchange. https://owaspai.org/. Accessed: May 12, 2026 (n.d.)
[47] European Data Protection Supervisor: AI Act Regulation (EU) 2024/1689 (Artificial Intelligence Act). Publications Office of the European Union, Luxembourg. Accessed: May 12, 2026 (2025)
[48] ISO: Cybersecurity — Artificial Intelligence — Guidance for addressing security threats and compromises to artificial intelligence systems, Geneva, Switzerland (2024)
[49] ISO: Cybersecurity and Privacy — Artificial Intelligence — Privacy protection, Geneva, Switzerland (2024)
[50] OWASP Gen AI Security Project: OWASP Gen AI Security Project. https://genai.owasp.org/. Accessed: May 12, 2026 (n.d.)
[51] MITRE: MITRE ATT&CK. https://attack.mitre.org/. Accessed: May 12, 2026 (n.d.)
[52] MITRE: MITRE ATLAS. https://atlas.mitre.org/. Accessed: May 12, 2026 (n.d.)
[53] Hiroshima AI Process: Hiroshima AI Process. https://www.soumu.go.jp/hiroshimaaiprocess/. Accessed: May 12, 2026 (n.d.)
[54] OECD: AI principles. https://www.oecd.org/en/topics/ai-principles.html.
Accessed: May 12, 2026 (n.d.)
[55] National Security Agency, Artificial Intelligence Security Center (AISC): Joint cybersecurity information on ai data security. Technical report (May 2025). https://media.defense.gov/2025/May/22/2003720601/-1/-1/0/CSI_AI_DATA_SECURITY.PDF
[56] European Union Agency for Cybersecurity (ENISA): The Framework for AI Cybersecurity Practices (FAICP). https://www.faicp-framework.com/ (n.d.)
[57] European Parliament and Council: Regulation (EU) 2019/881 on ENISA and on ICT cybersecurity certification (Cybersecurity Act). http://data.europa.eu/eli/reg/2019/881/oj. Accessed: May 12, 2026 (2019)
[58] European Union Agency for Cybersecurity (ENISA): European Union Cybersecurity Certification. https://certification.enisa.europa.eu/index_en. Accessed: May 12, 2026 (n.d.)
[59] European Parliament and the Council of the European Union: Guidelines on the scope of obligations for providers of general-purpose AI models under the AI Act. https://digital-strategy.ec.europa.eu/en/library/guidelines-scope-obligations-providers-general-purpose-ai-models-under-ai-act. Accessed: May 12, 2026 (n.d.)
[60] European Parliament and the Council of the European Union: The General-Purpose AI Code of Practice. https://digital-strategy.ec.europa.eu/en/policies/contents-code-gpai. Accessed: May 12, 2026 (n.d.)
[61] ASEAN: ASEAN Guide on AI Governance and Ethics. ASEAN Main Portal. https://asean.org/book/asean-guide-on-ai-governance-and-ethics/. Accessed: May 12, 2026 (n.d.)
[62] Das, B.C., Amini, M.H., Wu, Y.: Security and privacy challenges of large language models: A survey. ACM Comput. Surv. 57(6), 152–115239 (2025) https://doi.org/10.1145/3712001
[63] Yan, J., Yadav, V., Li, S., Chen, L., Tang, Z., Wang, H., Srinivasan, V., Ren, X., Jin, H.: Backdooring instruction-tuned large language models with virtual prompt injection. In: Proc. NAACL-HLT 2024, vol. 1. Mexico City, Mexico, pp. 6065–6086 (2024). https://doi.org/10.18653/v1/2024.naacl-long.337
[64] Shen, X., Chen, Z., Backes, M., Shen, Y., Zhang, Y.: "do anything now": Characterizing and evaluating in-the-wild jailbreak prompts on large language models. In: Proc. CCS 2024, New York, NY, USA, pp. 1671–1685 (2024). https://doi.org/10.1145/3658644.3670388
[65] Chakraborty, A., Alam, M., Dey, V., Chattopadhyay, A., Mukhopadhyay, D.: A survey on adversarial attacks and defences. CAAI Transactions on Intelligence
Technology 6(1), 25–45 (2021) https://doi.org/10.1049/cit2.12028
[66] Trusted-AI: Trusted-AI/adversarial-robustness-toolbox. https://github.com/Trusted-AI/adversarial-robustness-toolbox. Accessed: May 12, 2026 (2026)
[67] Rauber, J., Zimmermann, R., Bethge, M., Brendel, W.: Foolbox native: Fast adversarial attacks to benchmark the robustness of machine learning models in pytorch, tensorflow, and jax. Journal of Open Source Software 5(53), 2607 (2020) https://doi.org/10.21105/joss.02607
[68] Microsoft Azure: Azure/counterfit. https://github.com/Azure/counterfit. Accessed: May 12, 2026 (2026)
[69] Papernot, N., et al.: Technical Report on the CleverHans v2.1.0 Adversarial Examples Library. arXiv:1610.00768 (2018). https://doi.org/10.48550/arXiv.1610.00768
[70] AI Verify Foundation: aiverify-foundation/moonshot. https://github.com/aiverify-foundation/moonshot. Accessed: May 12, 2026 (2026)
[71] Zhu, K., Zhao, Q., Chen, H., Wang, J., Xie, X.: Promptbench: a unified library for evaluation of large language models. J. Mach. Learn. Res. 25(1), 254–1228725412308 (2024)
[72] OWASP Foundation: OWASP AI Testing Guide. https://owasp.org/www-project-ai-testing-guide/. Accessed: May 13, 2026 (n.d.)
[73] OWASP Foundation: GenAI Red Teaming Guide. https://genai.owasp.org/resource/genai-red-teaming-guide/. Accessed: May 13, 2026 (n.d.)
[74] ISO: Information technology — Artificial intelligence — Management system (2023)
[75] Japan AI Safety Institute (AISI): Guide to red teaming methodology on ai safety. Technical report (September 2024). https://aisi.go.jp/assets/pdf/ai_safety_RT_v1.00_en.pdf
[76] AI Verify Foundation: Cataloguing llm evaluations. Technical report (October 2023). https://aiverifyfoundation.sg/downloads/Cataloguing_LLM_Evaluations.pdf
[77] OWASP: Generative ai and agentic security solutions landscape. Technical report (November 2025). https://genai.owasp.org/resource/owasp-genai-security-project-solutions-reference-guide-q2_q325/
[78] OWASP AI Exchange: AI security testing. https://owaspai.org/docs/5_testing/. Accessed: May 13, 2026 (n.d.)
[79] Ollama: Ollama. https://ollama.com. Accessed: May 13, 2026 (n.d.)
[80] Meta: meta-llama/Llama-4-Scout-17B-16E-Instruct. https://huggingface.co/meta-llama/Llama-4-Scout-17B-16E-Instruct. Accessed: May 13, 2026 (n.d.)
[81] Meta: meta-llama/Llama 3.2-3B-Instruct. https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct. Accessed: May 13, 2026 (n.d.)
[82] Meta: meta-llama/Llama 2-7B-Chat. https://huggingface.co/meta-llama/Llama-2-7b-chat-hf. Accessed: May 13, 2026 (n.d.)
[83] LMSYS: lmsys/vicuna-13b-v1.5. https://huggingface.co/lmsys/vicuna-13b-v1.5. Accessed: May 13, 2026 (n.d.)
[84] DeepSeek: deepseek-ai/DeepSeek-V2-Lite-Chat. https://huggingface.co/deepseek-ai/DeepSeek-V2-Lite-Chat. Accessed: May 13, 2026 (n.d.)
[85] Mistral AI: mistralai/Mistral-7B-Instruct-v0.3. https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3. Accessed: May 13, 2026 (n.d.)
[86] Zhang, C., Morris, J.X., Shmatikov, V.: Extracting prompts by inverting llm outputs. In: Proc. EMNLP 2024, Miami, Florida, USA, pp. 14753–14777 (2024). https://doi.org/10.18653/v1/2024.emnlp-main.819