attackmap-analyzer-rust 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- attackmap_analyzer_rust-0.2.0/LICENSE +21 -0
- attackmap_analyzer_rust-0.2.0/PKG-INFO +115 -0
- attackmap_analyzer_rust-0.2.0/README.md +76 -0
- attackmap_analyzer_rust-0.2.0/pyproject.toml +74 -0
- attackmap_analyzer_rust-0.2.0/setup.cfg +4 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust/__init__.py +3 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust/analyzer.py +797 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust/frameworks.py +163 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust/route_auth.py +446 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust/routing.py +909 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust.egg-info/PKG-INFO +115 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust.egg-info/SOURCES.txt +16 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust.egg-info/dependency_links.txt +1 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust.egg-info/entry_points.txt +2 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust.egg-info/requires.txt +9 -0
- attackmap_analyzer_rust-0.2.0/src/attackmap_analyzer_rust.egg-info/top_level.txt +1 -0
- attackmap_analyzer_rust-0.2.0/tests/test_route_prefixes.py +853 -0
- attackmap_analyzer_rust-0.2.0/tests/test_rust_analyzer.py +702 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matthew Davis and AttackMap Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: attackmap-analyzer-rust
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Rust ecosystem analyzer plugin for AttackMap (axum, actix-web, rocket; sqlx/diesel/sea-orm; jsonwebtoken/argon2; reqwest).
|
|
5
|
+
Author: AttackMap Contributors
|
|
6
|
+
Author-email: Matthew Davis <mlaify@mlaify.io>
|
|
7
|
+
Maintainer-email: Matthew Davis <mlaify@mlaify.io>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/mlaify/attackmap-analyzer-rust
|
|
10
|
+
Project-URL: Repository, https://github.com/mlaify/attackmap-analyzer-rust
|
|
11
|
+
Project-URL: Issues, https://github.com/mlaify/attackmap-analyzer-rust/issues
|
|
12
|
+
Project-URL: Changelog, https://github.com/mlaify/attackmap-analyzer-rust/blob/main/CHANGELOG.md
|
|
13
|
+
Project-URL: AttackMap core, https://github.com/mlaify/AttackMap
|
|
14
|
+
Keywords: security,static-analysis,appsec,defensive-security,attackmap,attackmap-plugin
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Information Technology
|
|
18
|
+
Classifier: Intended Audience :: System Administrators
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
25
|
+
Classifier: Topic :: Security
|
|
26
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
27
|
+
Classifier: Typing :: Typed
|
|
28
|
+
Requires-Python: >=3.11
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: pydantic>=2.7.0
|
|
32
|
+
Provides-Extra: core
|
|
33
|
+
Requires-Dist: attackmap>=0.6.0; extra == "core"
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: build>=1.2.0; extra == "dev"
|
|
37
|
+
Requires-Dist: attackmap>=0.6.0; extra == "dev"
|
|
38
|
+
Dynamic: license-file
|
|
39
|
+
|
|
40
|
+
# attackmap-analyzer-rust
|
|
41
|
+
|
|
42
|
+
> [!IMPORTANT]
|
|
43
|
+
> **Active development, slow pace.** AttackMap is under active development, but
|
|
44
|
+
> progress may be slow until more contributors or co-maintainers join. Help is
|
|
45
|
+
> very welcome with the core engine, an analyzer, the macOS app, or the docs —
|
|
46
|
+
> see [CONTRIBUTING.md](CONTRIBUTING.md) or open an issue on
|
|
47
|
+
> [mlaify/AttackMap](https://github.com/mlaify/AttackMap/issues) to say hello.
|
|
48
|
+
> Security reports are still welcome at [security@mlaify.io](mailto:security@mlaify.io).
|
|
49
|
+
|
|
50
|
+
Rust ecosystem analyzer for [AttackMap](https://github.com/mlaify/AttackMap).
|
|
51
|
+
|
|
52
|
+
This analyzer extracts structured signals from Rust crates and Cargo workspaces:
|
|
53
|
+
|
|
54
|
+
- **Web frameworks** — axum, actix-web, rocket, poem, salvo, loco, warp, tide (routes with their full mounted path; entrypoints)
|
|
55
|
+
- **Databases** — sqlx (Postgres / MySQL / SQLite), diesel, sea-orm, tokio-postgres, rusqlite, mongodb, redis, deadpool, AWS SDK (S3 / DynamoDB)
|
|
56
|
+
- **Auth crates** — jsonwebtoken, argon2 / bcrypt / scrypt / password-hash, oauth2, axum-login, actix-identity, tower-sessions, tower-http auth
|
|
57
|
+
- **HTTP clients (external calls)** — reqwest, isahc, surf, ureq
|
|
58
|
+
- **Secrets** — `std::env::var`, `dotenv` / `dotenvy`, `env!` macro, `secrecy::SecretString`
|
|
59
|
+
- **Service hints** — Cargo `[package].name` and `[workspace].members`
|
|
60
|
+
|
|
61
|
+
All emissions populate AttackMap's Signal v2 fields (line numbers, evidence snippets, confidence scores) so downstream insights can cite `path/to/file.rs:NN`.
|
|
62
|
+
|
|
63
|
+
## Install
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
uv tool install attackmap --with attackmap-analyzer-rust \
|
|
67
|
+
--index mlaify=https://pkg.mlaify.io/pypi/simple/ --index-strategy first-index
|
|
68
|
+
# or from source:
|
|
69
|
+
pip install git+https://github.com/mlaify/attackmap-analyzer-rust.git
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The analyzer is auto-discovered by AttackMap via the `attackmap.analyzers` entry-point group.
|
|
73
|
+
|
|
74
|
+
## Usage with AttackMap
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Auto-discovered when installed:
|
|
78
|
+
attackmap analyze /path/to/rust/repo
|
|
79
|
+
|
|
80
|
+
# Or invoke explicitly:
|
|
81
|
+
attackmap analyze /path/to/rust/repo --module rust
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Detection
|
|
85
|
+
|
|
86
|
+
`detect()` returns true when any of the following are present, ignoring `target/`, `.git/`, `node_modules/`, `.cargo/`, and `vendor/`:
|
|
87
|
+
|
|
88
|
+
- A `Cargo.toml` or `Cargo.lock` at the repository root, or anywhere in the tree
|
|
89
|
+
- One or more `.rs` files in the tree
|
|
90
|
+
|
|
91
|
+
## Coverage notes
|
|
92
|
+
|
|
93
|
+
- **Route prefixes:** a route's path includes the prefixes of every router that mounts it.
|
|
94
|
+
- **axum:** `.nest("/p", x)` / `.merge(x)` where `x` is an inline `Router::new()...`, a `let x = Router::new()...` binding (same file, nearest earlier one) or `x()` / `module::x()` returning a router (any file; several `fn routes()` are told apart by module path or by being in the caller's file). A router nested at two prefixes yields a route under each.
|
|
95
|
+
- **actix-web:** `web::scope("/p")` and `web::resource("/p")` (also bare `scope(..)` / `resource(..)` when imported from `actix_web`), nested scopes, `.configure(module::config)`, and `#[get]` handlers mounted with `.service(handler)`.
|
|
96
|
+
- **rocket:** `.mount("/base", routes![a, m::b])` and `.mount("/base", m::routes())` where `fn routes()` returns `routes![..]`.
|
|
97
|
+
- **poem** `Route::new().at(..).nest(..)`, **salvo** `Router::with_path(..).get(h).push(..)`, **loco** `Routes::new().prefix(..).add(..)` under `AppRoutes::..().prefix(..).add_route(..)`.
|
|
98
|
+
- **warp:** each `warp::path!("users" / u32)` is a route (`/users/{u32}`); its method is the `warp::get()`-style filter combined with it. `path!(".." / ..)` prefix filters and `path!` used under another filter (`x.and(warp::path!(..))`) aren't emitted, since their prefix isn't visible.
|
|
99
|
+
- **tide:** `app.at("/x").at("/y").get(h)`, including receivers bound with `let api = app.at("/api")`.
|
|
100
|
+
- A non-literal prefix (`.nest(&format!(..), x)`) or an ambiguous mount leaves the route at its own path. `let` bindings resolve only within their own fn, and `let api = api.route(..)` continues the earlier router.
|
|
101
|
+
- A named router that nothing visible mounts counts as a fully-seen root (for `anonymous`) only when it is handed to a server (`axum::serve(l, app)`, poem `.run(app)`, salvo `.serve(router)`).
|
|
102
|
+
- Multi-method axum chains like `.route("/x", get(h).post(h2))` produce one `Route` per HTTP verb in the chain, all sharing the same `line`.
|
|
103
|
+
- The actix-web attribute regex (`#[get(...)]`) and rocket attribute regex are intentionally identical; rocket emissions only fire when the file also mentions `rocket` somewhere, to avoid double-counting actix routes.
|
|
104
|
+
- **Route auth (AttackMap#256)**: each route carries `auth` (`required` / `anonymous` / `unknown`), `guards` and `guard_evidence`.
|
|
105
|
+
- **axum:** a `Router::new()` chain is read in order. `.layer` / `.route_layer` wrap only the routes added before them. Routers bound with `let` or returned from `fn name() -> Router` are followed through `.merge(name)` / `.nest("/x", name)`, across files.
|
|
106
|
+
- **actix-web:** `.wrap(...)` on `App::new()` / `web::scope(...)` / `web::resource(...)` covers every service in it, nested and configured scopes included. `.service(handler)` links attribute-macro handlers to their scope.
|
|
107
|
+
- **poem / salvo / loco:** poem `.with(..)` wraps the routes before it; salvo `.hoop(..)` and loco `.layer(..)` cover the whole router.
|
|
108
|
+
- Each mount path is resolved on its own, so a router nested under an auth layer at `/admin` and outside it at `/preview` gets `required` only under `/admin`.
|
|
109
|
+
- **Auth layers:** `middleware::from_fn(require_auth)`, `from_extractor::<RequireAuth>`, `RequireAuthorizationLayer` / `ValidateRequestHeaderLayer::bearer`, `login_required!`, `HttpAuthentication::bearer`.
|
|
110
|
+
- **Handler extractors:** a type like `Claims`, `AuthUser`, `CurrentUser` or `LoggedUser` makes a route `required` only when its `FromRequestParts` / `FromRequest` impl is in the repo, can reject (not `type Rejection = Infallible`) checks credentials (reads an auth header / cookie / session / token) and rejects when they're missing (`ok_or(..)?`, an early `return Err`, `Err(Unauthorized)`, a required `TypedHeader<Authorization<..>>`). `Maybe*` / `Optional*` extractors, and ones that only parse a token when present, don't count; the same goes for Rocket request guards. Library extractors that reject anonymous callers count without a visible impl: actix-web-httpauth `BearerAuth` / `BasicAuth`, actix-identity `Identity`, loco `JWT` / `JWTWithUser`. `Option<AuthUser>` makes it `anonymous`, but only when no auth layer applies and every layer on the way up is a known non-auth one (tracing, CORS, compression, ...). axum-login's `AuthManagerLayer` / `AuthSession` only load the user and don't count.
|
|
111
|
+
- **Stays `unknown`:** routers re-layered or merged outside their own chain, handler names defined in more than one module that can't be told apart, extractors without a visible impl, Rocket path/data params, and warp / tide routes.
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
MIT
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# attackmap-analyzer-rust
|
|
2
|
+
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> **Active development, slow pace.** AttackMap is under active development, but
|
|
5
|
+
> progress may be slow until more contributors or co-maintainers join. Help is
|
|
6
|
+
> very welcome with the core engine, an analyzer, the macOS app, or the docs —
|
|
7
|
+
> see [CONTRIBUTING.md](CONTRIBUTING.md) or open an issue on
|
|
8
|
+
> [mlaify/AttackMap](https://github.com/mlaify/AttackMap/issues) to say hello.
|
|
9
|
+
> Security reports are still welcome at [security@mlaify.io](mailto:security@mlaify.io).
|
|
10
|
+
|
|
11
|
+
Rust ecosystem analyzer for [AttackMap](https://github.com/mlaify/AttackMap).
|
|
12
|
+
|
|
13
|
+
This analyzer extracts structured signals from Rust crates and Cargo workspaces:
|
|
14
|
+
|
|
15
|
+
- **Web frameworks** — axum, actix-web, rocket, poem, salvo, loco, warp, tide (routes with their full mounted path; entrypoints)
|
|
16
|
+
- **Databases** — sqlx (Postgres / MySQL / SQLite), diesel, sea-orm, tokio-postgres, rusqlite, mongodb, redis, deadpool, AWS SDK (S3 / DynamoDB)
|
|
17
|
+
- **Auth crates** — jsonwebtoken, argon2 / bcrypt / scrypt / password-hash, oauth2, axum-login, actix-identity, tower-sessions, tower-http auth
|
|
18
|
+
- **HTTP clients (external calls)** — reqwest, isahc, surf, ureq
|
|
19
|
+
- **Secrets** — `std::env::var`, `dotenv` / `dotenvy`, `env!` macro, `secrecy::SecretString`
|
|
20
|
+
- **Service hints** — Cargo `[package].name` and `[workspace].members`
|
|
21
|
+
|
|
22
|
+
All emissions populate AttackMap's Signal v2 fields (line numbers, evidence snippets, confidence scores) so downstream insights can cite `path/to/file.rs:NN`.
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
uv tool install attackmap --with attackmap-analyzer-rust \
|
|
28
|
+
--index mlaify=https://pkg.mlaify.io/pypi/simple/ --index-strategy first-index
|
|
29
|
+
# or from source:
|
|
30
|
+
pip install git+https://github.com/mlaify/attackmap-analyzer-rust.git
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The analyzer is auto-discovered by AttackMap via the `attackmap.analyzers` entry-point group.
|
|
34
|
+
|
|
35
|
+
## Usage with AttackMap
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Auto-discovered when installed:
|
|
39
|
+
attackmap analyze /path/to/rust/repo
|
|
40
|
+
|
|
41
|
+
# Or invoke explicitly:
|
|
42
|
+
attackmap analyze /path/to/rust/repo --module rust
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Detection
|
|
46
|
+
|
|
47
|
+
`detect()` returns true when any of the following are present, ignoring `target/`, `.git/`, `node_modules/`, `.cargo/`, and `vendor/`:
|
|
48
|
+
|
|
49
|
+
- A `Cargo.toml` or `Cargo.lock` at the repository root, or anywhere in the tree
|
|
50
|
+
- One or more `.rs` files in the tree
|
|
51
|
+
|
|
52
|
+
## Coverage notes
|
|
53
|
+
|
|
54
|
+
- **Route prefixes:** a route's path includes the prefixes of every router that mounts it.
|
|
55
|
+
- **axum:** `.nest("/p", x)` / `.merge(x)` where `x` is an inline `Router::new()...`, a `let x = Router::new()...` binding (same file, nearest earlier one) or `x()` / `module::x()` returning a router (any file; several `fn routes()` are told apart by module path or by being in the caller's file). A router nested at two prefixes yields a route under each.
|
|
56
|
+
- **actix-web:** `web::scope("/p")` and `web::resource("/p")` (also bare `scope(..)` / `resource(..)` when imported from `actix_web`), nested scopes, `.configure(module::config)`, and `#[get]` handlers mounted with `.service(handler)`.
|
|
57
|
+
- **rocket:** `.mount("/base", routes![a, m::b])` and `.mount("/base", m::routes())` where `fn routes()` returns `routes![..]`.
|
|
58
|
+
- **poem** `Route::new().at(..).nest(..)`, **salvo** `Router::with_path(..).get(h).push(..)`, **loco** `Routes::new().prefix(..).add(..)` under `AppRoutes::..().prefix(..).add_route(..)`.
|
|
59
|
+
- **warp:** each `warp::path!("users" / u32)` is a route (`/users/{u32}`); its method is the `warp::get()`-style filter combined with it. `path!(".." / ..)` prefix filters and `path!` used under another filter (`x.and(warp::path!(..))`) aren't emitted, since their prefix isn't visible.
|
|
60
|
+
- **tide:** `app.at("/x").at("/y").get(h)`, including receivers bound with `let api = app.at("/api")`.
|
|
61
|
+
- A non-literal prefix (`.nest(&format!(..), x)`) or an ambiguous mount leaves the route at its own path. `let` bindings resolve only within their own fn, and `let api = api.route(..)` continues the earlier router.
|
|
62
|
+
- A named router that nothing visible mounts counts as a fully-seen root (for `anonymous`) only when it is handed to a server (`axum::serve(l, app)`, poem `.run(app)`, salvo `.serve(router)`).
|
|
63
|
+
- Multi-method axum chains like `.route("/x", get(h).post(h2))` produce one `Route` per HTTP verb in the chain, all sharing the same `line`.
|
|
64
|
+
- The actix-web attribute regex (`#[get(...)]`) and rocket attribute regex are intentionally identical; rocket emissions only fire when the file also mentions `rocket` somewhere, to avoid double-counting actix routes.
|
|
65
|
+
- **Route auth (AttackMap#256)**: each route carries `auth` (`required` / `anonymous` / `unknown`), `guards` and `guard_evidence`.
|
|
66
|
+
- **axum:** a `Router::new()` chain is read in order. `.layer` / `.route_layer` wrap only the routes added before them. Routers bound with `let` or returned from `fn name() -> Router` are followed through `.merge(name)` / `.nest("/x", name)`, across files.
|
|
67
|
+
- **actix-web:** `.wrap(...)` on `App::new()` / `web::scope(...)` / `web::resource(...)` covers every service in it, nested and configured scopes included. `.service(handler)` links attribute-macro handlers to their scope.
|
|
68
|
+
- **poem / salvo / loco:** poem `.with(..)` wraps the routes before it; salvo `.hoop(..)` and loco `.layer(..)` cover the whole router.
|
|
69
|
+
- Each mount path is resolved on its own, so a router nested under an auth layer at `/admin` and outside it at `/preview` gets `required` only under `/admin`.
|
|
70
|
+
- **Auth layers:** `middleware::from_fn(require_auth)`, `from_extractor::<RequireAuth>`, `RequireAuthorizationLayer` / `ValidateRequestHeaderLayer::bearer`, `login_required!`, `HttpAuthentication::bearer`.
|
|
71
|
+
- **Handler extractors:** a type like `Claims`, `AuthUser`, `CurrentUser` or `LoggedUser` makes a route `required` only when its `FromRequestParts` / `FromRequest` impl is in the repo, can reject (not `type Rejection = Infallible`) checks credentials (reads an auth header / cookie / session / token) and rejects when they're missing (`ok_or(..)?`, an early `return Err`, `Err(Unauthorized)`, a required `TypedHeader<Authorization<..>>`). `Maybe*` / `Optional*` extractors, and ones that only parse a token when present, don't count; the same goes for Rocket request guards. Library extractors that reject anonymous callers count without a visible impl: actix-web-httpauth `BearerAuth` / `BasicAuth`, actix-identity `Identity`, loco `JWT` / `JWTWithUser`. `Option<AuthUser>` makes it `anonymous`, but only when no auth layer applies and every layer on the way up is a known non-auth one (tracing, CORS, compression, ...). axum-login's `AuthManagerLayer` / `AuthSession` only load the user and don't count.
|
|
72
|
+
- **Stays `unknown`:** routers re-layered or merged outside their own chain, handler names defined in more than one module that can't be told apart, extractors without a visible impl, Rocket path/data params, and warp / tide routes.
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "attackmap-analyzer-rust"
|
|
7
|
+
version = "0.2.0"
|
|
8
|
+
description = "Rust ecosystem analyzer plugin for AttackMap (axum, actix-web, rocket; sqlx/diesel/sea-orm; jsonwebtoken/argon2; reqwest)."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{name = "Matthew Davis", email = "mlaify@mlaify.io"},
|
|
15
|
+
{name = "AttackMap Contributors"},
|
|
16
|
+
]
|
|
17
|
+
maintainers = [
|
|
18
|
+
{name = "Matthew Davis", email = "mlaify@mlaify.io"},
|
|
19
|
+
]
|
|
20
|
+
keywords = [
|
|
21
|
+
"security",
|
|
22
|
+
"static-analysis",
|
|
23
|
+
"appsec",
|
|
24
|
+
"defensive-security",
|
|
25
|
+
"attackmap",
|
|
26
|
+
"attackmap-plugin",
|
|
27
|
+
]
|
|
28
|
+
classifiers = [
|
|
29
|
+
"Development Status :: 4 - Beta",
|
|
30
|
+
"Intended Audience :: Developers",
|
|
31
|
+
"Intended Audience :: Information Technology",
|
|
32
|
+
"Intended Audience :: System Administrators",
|
|
33
|
+
"Operating System :: OS Independent",
|
|
34
|
+
"Programming Language :: Python :: 3",
|
|
35
|
+
"Programming Language :: Python :: 3.11",
|
|
36
|
+
"Programming Language :: Python :: 3.12",
|
|
37
|
+
"Programming Language :: Python :: 3.13",
|
|
38
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
39
|
+
"Topic :: Security",
|
|
40
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
41
|
+
"Typing :: Typed",
|
|
42
|
+
]
|
|
43
|
+
dependencies = [
|
|
44
|
+
"pydantic>=2.7.0",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[project.optional-dependencies]
|
|
48
|
+
core = [
|
|
49
|
+
"attackmap>=0.6.0",
|
|
50
|
+
]
|
|
51
|
+
dev = [
|
|
52
|
+
"pytest>=8.0.0",
|
|
53
|
+
"build>=1.2.0",
|
|
54
|
+
"attackmap>=0.6.0",
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
[project.urls]
|
|
58
|
+
Homepage = "https://github.com/mlaify/attackmap-analyzer-rust"
|
|
59
|
+
Repository = "https://github.com/mlaify/attackmap-analyzer-rust"
|
|
60
|
+
Issues = "https://github.com/mlaify/attackmap-analyzer-rust/issues"
|
|
61
|
+
Changelog = "https://github.com/mlaify/attackmap-analyzer-rust/blob/main/CHANGELOG.md"
|
|
62
|
+
"AttackMap core" = "https://github.com/mlaify/AttackMap"
|
|
63
|
+
|
|
64
|
+
[project.entry-points."attackmap.analyzers"]
|
|
65
|
+
rust = "attackmap_analyzer_rust:RustAnalyzer"
|
|
66
|
+
|
|
67
|
+
[tool.setuptools]
|
|
68
|
+
package-dir = {"" = "src"}
|
|
69
|
+
|
|
70
|
+
[tool.setuptools.packages.find]
|
|
71
|
+
where = ["src"]
|
|
72
|
+
|
|
73
|
+
[tool.pytest.ini_options]
|
|
74
|
+
testpaths = ["tests"]
|