feat(rename agentic_security):

This commit is contained in:
Alexander Myasoedov
2024-04-26 13:58:25 +03:00
parent 8182d5efec
commit ccca156323
25 changed files with 56 additions and 56 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
# Langalf Code of Conduct
# Agentic Security Code of Conduct
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and our
@@ -28,7 +28,7 @@ Examples of unacceptable behavior by participants include:
- Conduct which could reasonably be considered inappropriate for the forum in
which it occurs.
All Langalf forums and spaces are meant for professional interactions, and any behavior which could reasonably be considered inappropriate in a professional setting is unacceptable.
All Agentic Security forums and spaces are meant for professional interactions, and any behavior which could reasonably be considered inappropriate in a professional setting is unacceptable.
## Our Responsibilities
@@ -38,9 +38,9 @@ Project maintainers have the right and responsibility to remove, edit, or reject
## Scope
This Code of Conduct applies to all content on Langalf website, Langalfs GitHub organization, or any other official Langalf web presence allowing for community interactions, as well as at all official Langalf events, whether offline or online.
This Code of Conduct applies to all content on Agentic Security website, Agentic Securitys GitHub organization, or any other official Agentic Security web presence allowing for community interactions, as well as at all official Agentic Security events, whether offline or online.
The Code of Conduct also applies within project spaces and in public spaces whenever an individual is representing Langalf or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed or de facto representative at an online or offline event.
The Code of Conduct also applies within project spaces and in public spaces whenever an individual is representing Agentic Security or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed or de facto representative at an online or offline event.
## Conflict Resolution
@@ -62,7 +62,7 @@ Please note that if you are experiencing or witnessing a discriminatory practice
## Reporting Violations
Violations of the Code of Conduct can be reported to Langalf via email to code_of_conduct@tangln.com. Project maintainers will determine whether the Code of Conduct was violated, and will issue an appropriate sanction, possibly including a written warning or expulsion from the project, project sponsored spaces, or project forums. We ask that you make a good-faith effort to resolve your conflict via the conflict resolution policy before submitting a report.
Violations of the Code of Conduct can be reported to Agentic Security via email to code_of_conduct@tangln.com. Project maintainers will determine whether the Code of Conduct was violated, and will issue an appropriate sanction, possibly including a written warning or expulsion from the project, project sponsored spaces, or project forums. We ask that you make a good-faith effort to resolve your conflict via the conflict resolution policy before submitting a report.
Violations of the Code of Conduct can occur in any setting, even those unrelated to the project. We will only consider complaints about conduct that has occurred within one year of the report.
+3 -3
View File
@@ -1,6 +1,6 @@
# Langalf - Features for Organizations
# Agentic Security - Features for Organizations
This feature list outlines the advanced capabilities of Langalf to assist in integrating high-security, low-latency language model applications into organizational infrastructure, with a particular focus on detecting and preventing prompt injection and jailbreak attempts.
This feature list outlines the advanced capabilities of Agentic Security to assist in integrating high-security, low-latency language model applications into organizational infrastructure, with a particular focus on detecting and preventing prompt injection and jailbreak attempts.
## 1. Exclusive Pentest with a 40k Jailbreak Dataset
@@ -16,6 +16,6 @@ Implements feedback loops and LLMOps for continuous monitoring and improvement,
## 4. Reduced dependencies
Self-Contained Runtime Environment: Langalf operates within a self-contained runtime. This significantly lowers the barrier to entry for organizations by minimizing the complexity typically associated with setting up and maintaining LLM applications and infra.
Self-Contained Runtime Environment: Agentic Security operates within a self-contained runtime. This significantly lowers the barrier to entry for organizations by minimizing the complexity typically associated with setting up and maintaining LLM applications and infra.
This library approach not only simplifies the architecture but also reduces potential points of failure and latency issues associated with external dependencies
+27 -27
View File
@@ -10,13 +10,13 @@
<br />
<p>
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/msoedov/langalf" />
<img alt="GitHub Last Commit" src="https://img.shields.io/github/last-commit/msoedov/langalf" />
<img alt="" src="https://img.shields.io/github/repo-size/msoedov/langalf" />
<img alt="Downloads" src="https://static.pepy.tech/badge/langalf" />
<img alt="GitHub Issues" src="https://img.shields.io/github/issues/msoedov/langalf" />
<img alt="GitHub Pull Requests" src="https://img.shields.io/github/issues-pr/msoedov/langalf" />
<img alt="Github License" src="https://img.shields.io/github/license/msoedov/langalf" />
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/msoedov/agentic_security" />
<img alt="GitHub Last Commit" src="https://img.shields.io/github/last-commit/msoedov/agentic_security" />
<img alt="" src="https://img.shields.io/github/repo-size/msoedov/agentic_security" />
<img alt="Downloads" src="https://static.pepy.tech/badge/agentic_security" />
<img alt="GitHub Issues" src="https://img.shields.io/github/issues/msoedov/agentic_security" />
<img alt="GitHub Pull Requests" src="https://img.shields.io/github/issues-pr/msoedov/agentic_security" />
<img alt="Github License" src="https://img.shields.io/github/license/msoedov/agentic_security" />
</p>
</p>
</p>
@@ -40,23 +40,23 @@
- Comprehensive Reporting Tools 📊: Offers detailed reports of vulnerability, helping teams to quickly understand and respond to security incidents.
- Customizable Rule Sets 🛠️: Allows users to define custom attack rules and parameters to meet specific prompt attacks needs and compliance standards.
Note: Please be aware that Langalf is designed as a safety scanner tool and not a foolproof solution. It cannot guarantee complete protection against all possible threats.
Note: Please be aware that Agentic Security is designed as a safety scanner tool and not a foolproof solution. It cannot guarantee complete protection against all possible threats.
## 📦 Installation
To get started with Langalf, simply install the package using pip:
To get started with Agentic Security, simply install the package using pip:
```shell
pip install langalf
pip install agentic_security
```
## ⛓️ Quick Start
```shell
langalf
agentic_security
2024-04-13 13:21:31.157 | INFO | langalf.probe_data.data:load_local_csv:273 - Found 1 CSV files
2024-04-13 13:21:31.157 | INFO | langalf.probe_data.data:load_local_csv:274 - CSV files: ['prompts.csv']
2024-04-13 13:21:31.157 | INFO | agentic_security.probe_data.data:load_local_csv:273 - Found 1 CSV files
2024-04-13 13:21:31.157 | INFO | agentic_security.probe_data.data:load_local_csv:274 - CSV files: ['prompts.csv']
INFO: Started server process [18524]
INFO: Waiting for application startup.
INFO: Application startup complete.
@@ -64,18 +64,18 @@ INFO: Uvicorn running on http://0.0.0.0:8718 (Press CTRL+C to quit)
```
```shell
python -m langalf
python -m agentic_security
# or
langalf --help
agentic_security --help
langalf --port=PORT --host=HOST
agentic_security --port=PORT --host=HOST
```
## LLM kwargs
Langalf uses plain text HTTP spec like:
Agentic Security uses plain text HTTP spec like:
```http
POST https://api.openai.com/v1/chat/completions
@@ -102,16 +102,16 @@ TBD
## Adding own dataset
To add your own dataset you can place one or multiples csv files with `prompt` column, this data will be loaded on `langalf` startup
To add your own dataset you can place one or multiples csv files with `prompt` column, this data will be loaded on `agentic_security` startup
```
2024-04-13 13:21:31.157 | INFO | langalf.probe_data.data:load_local_csv:273 - Found 1 CSV files
2024-04-13 13:21:31.157 | INFO | langalf.probe_data.data:load_local_csv:274 - CSV files: ['prompts.csv']
2024-04-13 13:21:31.157 | INFO | agentic_security.probe_data.data:load_local_csv:273 - Found 1 CSV files
2024-04-13 13:21:31.157 | INFO | agentic_security.probe_data.data:load_local_csv:274 - CSV files: ['prompts.csv']
```
## Extending dataset collections
1. Add new metadata to langalf.probe_data.REGISTRY
1. Add new metadata to agentic_security.probe_data.REGISTRY
```python
{
@@ -194,7 +194,7 @@ class Stenography:
In the example of custom integration, we use `/v1/self-probe` for the sake of integration testing.
```python
POST https://langalf-preview.vercel.app/v1/self-probe
POST https://agentic_security-preview.vercel.app/v1/self-probe
Authorization: Bearer XXXXX
Content-Type: application/json
@@ -236,7 +236,7 @@ TBD
## Documentation
For more detailed information on how to use Langalf, including advanced features and customization options, please refer to the official documentation.
For more detailed information on how to use Agentic Security, including advanced features and customization options, please refer to the official documentation.
## Roadmap and Future Goals
@@ -249,19 +249,19 @@ Note: All dates are tentative and subject to change based on project progress an
## 👋 Contributing
Contributions to Langalf are welcome! If you'd like to contribute, please follow these steps:
Contributions to Agentic Security are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository on GitHub
- Create a new branch for your changes
- Commit your changes to the new branch
- Push your changes to the forked repository
- Open a pull request to the main Langalf repository
- Open a pull request to the main Agentic Security repository
Before contributing, please read the contributing guidelines.
## License
Langalf is released under the Apache License v2.
Agentic Security is released under the Apache License v2.
## Contact us
@@ -269,7 +269,7 @@ Langalf is released under the Apache License v2.
<a href="https://cal.com/alexander-myasoedov-go2tfs/30min"><img src="https://cal.com/book-with-cal-dark.svg" alt="Book us with Cal.com"></a>
Book a 1-on-1 Session with the founders, to discuss any issues, provide feedback, or explore how we can improve langalf for you.
Book a 1-on-1 Session with the founders, to discuss any issues, provide feedback, or explore how we can improve agentic_security for you.
## Repo Activity
@@ -4,7 +4,7 @@ import sys
import fire
import uvicorn
from langalf.app import app
from agentic_security.app import app
class T:
+2 -2
View File
@@ -42,8 +42,8 @@ app.add_middleware(
@app.get("/")
async def root():
langalf_path = Path(__file__).parent
return FileResponse(f"{langalf_path}/static/index.html")
agentic_security_path = Path(__file__).parent
return FileResponse(f"{agentic_security_path}/static/index.html")
class LLMInfo(BaseModel):
@@ -4,8 +4,8 @@ import httpx
from loguru import logger
from pydantic import BaseModel
from langalf.probe_actor.refusal import refusal_heuristic
from langalf.probe_data.data import prepare_prompts
from agentic_security.probe_actor.refusal import refusal_heuristic
from agentic_security.probe_data.data import prepare_prompts
IS_VERCEL = os.getenv("IS_VERCEL", "f") == "t"
@@ -1,4 +1,4 @@
from langalf.probe_actor.refusal import check_refusal
from agentic_security.probe_actor.refusal import check_refusal
class TestCheckRefusal:
@@ -82,7 +82,7 @@ REGISTRY = [
"url": "",
},
{
"dataset_name": "Langalf",
"dataset_name": "Agentic Security",
"num_prompts": 0,
"tokens": 0,
"approx_cost": 0.0,
@@ -6,8 +6,8 @@ from functools import lru_cache
import pandas as pd
from loguru import logger
from langalf.probe_data import stenography_fn
from langalf.probe_data.modules import adaptive_attacks
from agentic_security.probe_data import stenography_fn
from agentic_security.probe_data.modules import adaptive_attacks
IS_VERCEL = os.getenv("IS_VERCEL", "f") == "t"
@@ -47,8 +47,8 @@
<div id="vue-app">
<h4
class="-mx-20 px-24 text-center bg-earthy-zen py-4 text-l text-white text-dark-primary ">🚀
NEW: Star Langalf on <a
href="https://github.com/msoedov/langalf"
NEW: Star Agentic Security on <a
href="https://github.com/msoedov/agentic_security"
target="_blank"
class="text-dark-primary underline"
data-faitracker-click-bind="true">Github</a> 🚀</h4>
@@ -58,7 +58,7 @@
<i class="text-earth-1" data-lucide="triangle"></i>
</div>
<div class="header__actions flex items-center space-x-4">
<a href="https://github.com/msoedov/langalf" target="_blank"
<a href="https://github.com/msoedov/agentic_security" target="_blank"
rel="noreferrer"
class="github-link flex items-center gap-4 hover:text-accent focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent"
aria-label="Star on GitHub">
@@ -67,7 +67,7 @@
d="..."></path></svg>
<span class="hidden lg:inline">Docs</span>
</a>
<!-- <a href="https://github.com/msoedov/langalf" target="_blank"
<!-- <a href="https://github.com/msoedov/agentic_security" target="_blank"
rel="noreferrer"
class="github-link flex items-center gap-4 hover:text-accent focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent"
aria-label="Star on GitHub">
@@ -1,4 +1,4 @@
from langalf.http_spec import LLMSpec, parse_http_spec
from agentic_security.http_spec import LLMSpec, parse_http_spec
class TestParseHttpSpec:
+4 -4
View File
@@ -1,10 +1,10 @@
[tool.poetry]
name = "langalf"
name = "agentic_security"
version = "0.0.4"
description = "Agentic LLM vulnerability scanner"
authors = ["Alexander Miasoiedov <msoedov@gmail.com>"]
maintainers = ["Alexander Miasoiedov <msoedov@gmail.com>"]
repository = "https://github.com/msoedov/langalf"
repository = "https://github.com/msoedov/agentic_security"
license = "MIT"
readme = "Readme.md"
keywords = [
@@ -18,11 +18,11 @@ keywords = [
"llm vulnerabilities",
"owasp-llm-top-10",
]
packages = [{ include = "langalf", from = "." }]
packages = [{ include = "agentic_security", from = "." }]
[tool.poetry.scripts]
langalf = "langalf.__main__:entrypoint"
agentic_security = "agentic_security.__main__:entrypoint"
[tool.poetry.dependencies]
python = "^3.9"
+3 -3
View File
@@ -1,15 +1,15 @@
{
"devCommand": "uvicorn langalf.app:app --host 0.0.0.0 --port 3000",
"devCommand": "uvicorn agentic_security.app:app --host 0.0.0.0 --port 3000",
"builds": [
{
"src": "langalf/app.py",
"src": "agentic_security/app.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "langalf/app.py"
"dest": "agentic_security/app.py"
}
]
}