Skip to content

Commit 7e62b0c

Browse files
authored
Merge pull request #50 from doublegate/copilot/sub-pr-49
[WIP] Fix security alerts and update WRAITH-RedOps dependencies
2 parents ddaf661 + 85fb863 commit 7e62b0c

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

clients/wraith-redops/operator-client/src-tauri/tauri.conf.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"active": true,
3232
"targets": "all",
3333
"icon": [
34-
"../../../wraith-chat/src-tauri/icons/32x32.png",
35-
"../../../wraith-chat/src-tauri/icons/128x128.png",
36-
"../../../wraith-chat/src-tauri/icons/128x128@2x.png",
37-
"../../../wraith-chat/src-tauri/icons/icon.icns",
38-
"../../../wraith-chat/src-tauri/icons/icon.ico"
34+
"icons/32x32.png",
35+
"icons/128x128.png",
36+
"icons/128x128@2x.png",
37+
"icons/icon.icns",
38+
"icons/icon.ico"
3939
],
4040
"category": "Utility",
4141
"shortDescription": "WRAITH Red Team Operations Platform",

clients/wraith-redops/team-server/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ prost = "0.13"
2424
prost-types = "0.13"
2525

2626
# Database - Updated to 0.8.1 to fix CVE (Dependabot alert #3)
27-
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "json", "macros", "migrate"] }
27+
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "json", "macros", "migrate", "ipnetwork"] }
28+
ipnetwork = "0.20"
2829

2930
# Serialization
3031
serde = { version = "1.0", features = ["derive"] }

clients/wraith-redops/team-server/src/database/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ impl Database {
4949
)
5050
.bind(implant.campaign_id)
5151
.bind(&implant.hostname)
52-
.bind(&implant.internal_ip)
53-
.bind(&implant.external_ip)
52+
.bind(implant.internal_ip)
53+
.bind(implant.external_ip)
5454
.bind(&implant.os_type)
5555
.bind(&implant.os_version)
5656
.bind(&implant.architecture)

clients/wraith-redops/team-server/src/models/mod.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pub mod listener;
22
use chrono::{DateTime, Utc};
3+
use ipnetwork::IpNetwork;
34
use serde::{Deserialize, Serialize};
45
use sqlx::FromRow;
56
use uuid::Uuid;
@@ -20,10 +21,10 @@ pub struct Implant {
2021
pub id: Uuid,
2122
pub campaign_id: Option<Uuid>,
2223
pub hostname: Option<String>,
23-
/// Internal IP address stored as CIDR string (e.g., "192.168.1.100/32")
24-
pub internal_ip: Option<String>,
25-
/// External IP address stored as CIDR string (e.g., "203.0.113.50/32")
26-
pub external_ip: Option<String>,
24+
/// Internal IP address (INET type in database)
25+
pub internal_ip: Option<IpNetwork>,
26+
/// External IP address (INET type in database)
27+
pub external_ip: Option<IpNetwork>,
2728
pub os_type: Option<String>,
2829
pub os_version: Option<String>,
2930
pub architecture: Option<String>,

0 commit comments

Comments
 (0)