Public release

This commit is contained in:
specialworld83 2026-02-27 21:37:06 +01:00
commit d34e319fbe
299 changed files with 630579 additions and 3 deletions

1755
CMakeLists.txt Normal file

File diff suppressed because it is too large Load diff

View file

@ -5,10 +5,9 @@ BastionGuard is a Linux security platform designed for users who want determinis
## Release Status
BastionGuard is currently under active development.
BastionGuard 1.0 was officially released on February 27, 2026.
The first public release is scheduled for mid-March 2026.
This timeline is subject to change based on development and testing progress.
Version 1.0 represents the first stable production-ready release, following extensive development and testing.
## Build and Installation

View file

@ -0,0 +1,18 @@
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root">
<allow own="org.BastionGuard.USBD"/>
<allow send_destination="org.BastionGuard.USBD"/>
<allow send_interface="org.BastionGuard.USBD"/>
</policy>
<policy context="default">
<deny own="org.BastionGuard.USBD"/>
</policy>
</busconfig>

View file

@ -0,0 +1,5 @@
[D-BUS Service]
Name=org.BastionGuard.USBD
Exec=/usr/bin/BastionGuard-usbd
User=root
SystemdService=BastionGuard-usbd.service

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
<policyconfig>
<action id="it.BastionGuard.camera.toggle">
<description>Gestione privacy webcam e microfono (BastionGuard)</description>
<message>Consentire a BastionGuard di modificare lo stato di webcam e microfono?</message>
<defaults>
<allow_active>yes</allow_active>
<allow_inactive>no</allow_inactive>
<allow_any>no</allow_any>
</defaults>
</action>
</policyconfig>

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
<policyconfig>
<!-- BastionGuard – helper privilegiato -->
<action id="it.bastionguard.privhelper">
<description>Gestione privacy webcam e microfono (BastionGuard)</description>
<message>
Consentire a BastionGuard di abilitare o disabilitare l’accesso
alla webcam e al microfono?
</message>
<defaults>
<!-- Sessione grafica attiva: nessun prompt -->
<allow_active>yes</allow_active>
<!-- Sessione inattiva (systemd --user, thread, background): OK -->
<allow_inactive>yes</allow_inactive>
<!-- Qualsiasi altro caso: vietato -->
<allow_any>no</allow_any>
</defaults>
<!-- Binario autorizzato -->
<annotate key="org.freedesktop.policykit.exec.path">
/usr/bin/bastionguard-privhelper
</annotate>
<!-- Nessuna UI richiesta -->
<annotate key="org.freedesktop.policykit.exec.allow_gui">
false
</annotate>
</action>
</policyconfig>

View file

@ -0,0 +1,27 @@
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Permetti al demone (root) di registrare il nome -->
<policy user="root">
<allow own="org.BastionGuard.USBD"/>
<allow send_destination="org.BastionGuard.USBD"/>
<allow send_interface="org.BastionGuard.USBD"/>
</policy>
<!-- Permetti ai client desktop (utenti normali) di ascoltare i segnali -->
<policy context="default">
<allow send_interface="org.BastionGuard.USBD"/>
<allow send_destination="org.BastionGuard.USBD"/>
</policy>
<!-- Consenti l'ascolto dei segnali -->
<policy context="default">
<allow receive_sender="org.BastionGuard.USBD"/>
<allow receive_interface="org.BastionGuard.USBD"/>
</policy>
</busconfig>

View file

@ -0,0 +1,22 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/org/BastionGuard/USBD">
<interface name="org.BastionGuard.USBD">
<!-- Segnale: dispositivo USB collegato -->
<signal name="DeviceAdded">
<arg type="s" name="name"/>
<arg type="s" name="devnode"/>
<arg type="s" name="serial"/>
</signal>
<!-- Segnale: dispositivo USB scollegato -->
<signal name="DeviceRemoved">
<arg type="s" name="devnode"/>
</signal>
</interface>
</node>

View file

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>BastionGuard Security Frontend</vendor>
<vendor_url>https://codelinsoft.it/BastionGuard</vendor_url>
<!-- ============================================================= -->
<!-- ⚙️ 1. Script di configurazione rete e sicurezza -->
<!-- ============================================================= -->
<action id="org.BastionGuard.netsetup">
<description>Configurazione rete BastionGuard (firewall, DNS, servizi)</description>
<message>Autorizzazione per applicare le impostazioni di rete e firewall di BastionGuard</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">
/usr/share/BastionGuard/data/scripts/BastionGuard-net-setup.sh /usr/libexec/BastionGuard-helper /usr/bin/nft /usr/bin/firewall-cmd /usr/sbin/ufw
</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_user_interaction">true</annotate>
</action>
<!-- ============================================================= -->
<!-- 🧱 2. Installazione e gestione di nftables.conf -->
<!-- ============================================================= -->
<action id="org.BastionGuard.nftables">
<description>Installa e abilita la configurazione nftables di BastionGuard</description>
<message>Autorizzazione richiesta per configurare nftables e scrivere /etc/nftables.conf</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">
/usr/sbin/nft /usr/bin/nft /usr/bin/cp /bin/systemctl /usr/lib/systemd/systemd
</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_user_interaction">true</annotate>
</action>
<!-- ============================================================= -->
<!-- 🧩 3. Gestione dei servizi di sistema -->
<!-- ============================================================= -->
<action id="org.BastionGuard.service.manage">
<description>Riavvio, abilitazione e gestione dei servizi BastionGuard</description>
<message>Autorizzazione per gestire i servizi BastionGuard tramite systemd</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">
/bin/systemctl /usr/bin/systemctl /usr/lib/systemd/systemd
</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_user_interaction">true</annotate>
</action>
<!-- ============================================================= -->
<!-- 🧰 4. Operazioni amministrative generiche (manutenzione) -->
<!-- ============================================================= -->
<action id="org.BastionGuard.maintenance">
<description>Operazioni di manutenzione e setup di BastionGuard</description>
<message>Autorizzazione richiesta per completare operazioni amministrative di BastionGuard</message>
<defaults>
<allow_any>auth_admin_keep</allow_any>
<allow_inactive>auth_admin_keep</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">
/bin/sh /usr/bin/bash /usr/bin/install /usr/bin/openssl /usr/bin/trust /usr/bin/update-ca-certificates
</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_user_interaction">true</annotate>
</action>
</policyconfig>

View file

@ -0,0 +1,9 @@
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root">
<allow send_type="signal"
send_destination="org.BastionGuard.Alert"/>
</policy>
</busconfig>

View file

@ -0,0 +1,28 @@
# -----------------------------------------------------------------------------
# BastionGuard - Script di disinstallazione generato automaticamente da CMake
# -----------------------------------------------------------------------------
# Usa il file "install_manifest.txt" generato al momento del `make install`
# per rimuovere ogni file installato.
# -----------------------------------------------------------------------------
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
message(FATAL_ERROR " Impossibile trovare install_manifest.txt.
Esegui prima 'make install' per generarlo.")
endif()
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" _files)
string(REGEX REPLACE "\n" ";" _files "${_files}")
message(STATUS "🧹 Avvio disinstallazione completa di BastionGuard...")
foreach(_file ${_files})
if(EXISTS "${_file}" OR IS_SYMLINK "${_file}")
message(STATUS "Rimuovo: ${_file}")
execute_process(COMMAND ${CMAKE_COMMAND} -E remove "${_file}")
else()
message(WARNING "File non trovato (forse già rimosso): ${_file}")
endif()
endforeach()
message(STATUS "✅ Disinstallazione BastionGuard completata con successo.")

View file

@ -0,0 +1,20 @@
rule ZeroDay_Generic_Heuristic
{
meta:
description = "Regola euristica per rilevamento generico di potenziali Zero-Day"
author = "BastionGuard"
date = "2025-10-07"
level = "high"
strings:
$api_suspicious = /VirtualAlloc|WriteProcessMemory|CreateRemoteThread/i
$packer_strings = /UPX|MPRESS|ASPack|NSPack|Enigma/i
$powershell_cmd = /powershell(\.exe)?\s+.*-enc/i
$script_dropper = /cmd\.exe\s+\/c\s+(copy|echo|type).*\.(exe|dll|bat)/i
condition:
(uint16(0) == 0x5A4D or filesize < 2MB) and
(1 of ($api_suspicious*) or 1 of ($packer_strings*) or
$powershell_cmd or $script_dropper)
}

1735
data/BastionGuard-dark.css Normal file

File diff suppressed because it is too large Load diff

4015
data/BastionGuard.css Normal file

File diff suppressed because it is too large Load diff

BIN
data/bastion_guard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

167
data/blocking/block.html Normal file
View file

@ -0,0 +1,167 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>⚠️ Accesso bloccato - Pagina phishing riconosciuta</title>
<meta name="description" content="L'accesso al dominio è stato bloccato dal sistema anti-phishing BastionGuard per proteggere i tuoi dati sensibili.">
<meta name="robots" content="noindex,nofollow">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<style>
body {
background: linear-gradient(135deg, #ff6f61, #d6a4a4);
color: #fff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.error-container {
background: rgba(0, 0, 0, 0.55);
border-radius: 15px;
padding: 3rem 2rem;
max-width: 720px;
box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.error-title {
font-size: 2.2rem;
font-weight: 700;
margin-bottom: 1.2rem;
}
.error-message {
font-size: 1.15rem;
margin-bottom: 1.6rem;
line-height: 1.5;
}
.btn-danger {
background-color: #ff6f61;
border: none;
}
.btn-danger:hover {
background-color: #d9534f;
}
.btn-outline-light {
border-width: 2px;
}
.muted-small { font-size: .9rem; opacity: .85; }
</style>
</head>
<body>
<div class="error-container" id="blockpage" role="main" aria-labelledby="err_title">
<div class="error-title" id="err_title">⚠️ Sito bloccato per phishing</div>
<div class="error-message" id="msg">
L'accesso al dominio <strong><i id="domain_text">— dominio —</i></strong> è stato
<b>bloccato</b> dal sistema anti-phishing di BastionGuard.<br>
Questo sito potrebbe tentare di rubare dati sensibili (password, carte di credito, ecc.).
</div>
<div class="d-flex flex-column gap-3">
<a href="about:blank" class="btn btn-outline-light btn-lg w-100" role="button" aria-label="Torna al sicuro">🔒 Torna al sicuro</a>
</div>
<p class="mt-4 mb-0 text-light muted-small">
Sistema anti-phishing BastionGuard — protezione attiva
</p>
</div>
<script>
(function() {
// helper: read ?domain=... from querystring
function getQueryParam(name) {
try {
const u = new URL(window.location.href);
return u.searchParams.get(name) || '';
} catch (e) { return ''; }
}
// try to obtain a sensible domain to display:
// priority: ?domain= -> location.hostname -> document.referrer host -> "dominio sconosciuto"
var domain = '';
domain = getQueryParam('domain') || domain;
// location.hostname is normally the value in the browser address bar (original host)
try {
if (!domain && window.location && window.location.hostname) {
domain = window.location.hostname;
}
} catch(e) {}
// fallback to parsing referrer (if present)
try {
if (!domain && document.referrer) {
try {
var r = new URL(document.referrer);
domain = r.hostname || domain;
} catch(e) { /* ignore */ }
}
} catch(e) {}
if (!domain) domain = 'dominio sconosciuto';
// sanitize just in case: keep only common hostname chars
domain = domain.toString().trim().replace(/[^A-Za-z0-9\.\-:_]/g, '');
// inject into page
var el = document.getElementById('domain_text');
if (el) el.textContent = domain;
var titleDomain = document.getElementById('page_title_domain');
if (titleDomain) titleDomain.textContent = domain;
// also update <title> for UA that reads it
try {
if (document.title && document.title.indexOf('{{') !== -1) {
document.title = '⚠️ Accesso bloccato - ' + domain;
}
} catch(e){}
// Build continue href if server left placeholders or didn't provide valid data
try {
var btn = document.getElementById('continue_btn');
if (!btn) return;
var href = btn.getAttribute('href') || '';
var hasPlaceholderHref = href.indexOf('{{') !== -1;
var dataTarget = btn.dataset.target || '';
var dataEvent = btn.dataset.event || '';
// choose a target: prefer dataset.target (if valid), otherwise the detected domain
var targetVal = (dataTarget && dataTarget.indexOf('{{') === -1) ? dataTarget : domain;
if (!targetVal) {
btn.classList.add('disabled');
btn.setAttribute('aria-disabled', 'true');
btn.href = 'about:blank';
return;
}
// if server already provided a concrete href (no placeholders), keep it
if (!hasPlaceholderHref) {
return;
}
// build a safe relative continue URL handled by local warning server:
// /continue?target=<encoded>&event=<encoded>
function e(s) { return encodeURIComponent(s); }
var built = '/continue?target=' + e(targetVal);
if (dataEvent && dataEvent.indexOf('{{') === -1) {
built += '&event=' + e(dataEvent);
}
// Set the href to the safe relative URL. If you prefer absolute to 127.0.0.1 use:
// btn.href = 'http://127.0.0.1:81' + built; // <-- only if your local warning server listens on :81
btn.href = built;
} catch (e) {
// don't break the page on JS errors
console && console.warn && console.warn("block page script error", e);
}
})();
</script>
</body>
</html>

View file

@ -0,0 +1,16 @@
# riduce ritardi kernel / utente
net.core.busy_poll = 50
net.core.busy_read = 50
# UDP buffers più ampi
net.ipv4.udp_rmem_min = 16384
net.ipv4.udp_wmem_min = 16384
# socket buffer default equilibrati
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 524288
net.core.wmem_max = 524288
# disabilita delayed ack per tcp (solo se usi DoH/DoT)
net.ipv4.tcp_low_latency = 1

View file

38
data/config/nftables.conf Normal file
View file

@ -0,0 +1,38 @@
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0;
policy drop;
# loopback
iif lo accept
ip saddr 127.0.0.2/8 accept
ip6 saddr ::1 accept
# allow established/related
ct state established,related accept
# allow SSH
tcp dport 22 accept
# allow ping
ip protocol icmp accept
ip6 nexthdr icmpv6 accept
# log dropped packets (optional)
# log prefix "nftables denied: " counter drop
}
chain forward {
type filter hook forward priority 0;
policy drop;
}
chain output {
type filter hook output priority 0;
policy accept;
}
}

78
data/config/scanner.conf Normal file
View file

@ -0,0 +1,78 @@
# ===============================
# Configurazione BastionGuard Ransomware Scanner
# ===============================
# ---------------------------------
# Moduli principali
# ---------------------------------
# Abilitare/disabilitare scansione con regole YARA
# Valori accettati: 1/0, true/false, yes/no
enable_yara=1
# Abilitare/disabilitare scansione con DB ClamAV/Sanesecurity
# (se attivo, le rilevazioni YARA vengono confrontate anche con ClamAV per ridurre FP)
enable_sanesecurity=0
# Percorso o directory delle regole YARA
# Se relativo, viene risolto automaticamente:
# ./data/ → ~/.local/share/BastionGuard/data/ → /usr/share/BastionGuard/data/
yara_rules=rules
# Directory database Sanesecurity
# Anche qui puoi mettere relativo (es. "sanesecurity") o assoluto (/usr/share/BastionGuard/data/sanesecurity)
sanesecurity_db=/usr/share/BastionGuard/data/sanesecurity
# Directory da scansionare, separate da ";"
# Puoi aggiungerne più di una (es. /home;/media/usb)
scan_path=/home
# Limite massimo memoria per YARA (in byte)
# Default: 512MB = 536870912
max_memory=536870912
# Intervallo scansioni (in minuti)
# Default: 5 — esegue un ciclo completo ogni X minuti
scan_interval=360
# ---------------------------------
# Filtri anti–falsi positivi
# ---------------------------------
# Percorsi da ignorare (pattern glob, separati da ";")
# Evita directory con molti file benigni o cache
ignore_paths=/home/*/.cache;/home/*/.thumbnails;/home/*/.npm;/home/*/.cargo;/home/*/.local/share/Trash;/var/cache;/usr/share
# Estensioni di file da ignorare (separate da ";", lowercase)
# I file con queste estensioni non verranno mai scansionati
ignore_ext=.jpg;.jpeg;.png;.gif;.svg;.ico;.mp3;.mp4;.mov;.pdf;.odt;.ods;.sqlite;.db;.log;.bak;.tmp
# Estensioni di file “sospette” da scansionare (solo se suspicious_only=1)
# Sono quelle tipiche dei payload ransomware o script
suspicious_ext=.exe;.dll;.sys;.js;.vbs;.ps1;.sh;.elf;.bin;.scr;.lnk;.hta
# Se impostato a 1 → scansiona solo file con estensioni sospette
# Se impostato a 0 → scansiona tutti i file non ignorati
suspicious_only=1
# ---------------------------------
# Allowlist (whitelist) SHA256
# ---------------------------------
# File contenente la lista degli hash SHA256 da ignorare
# Formato per riga:
# <sha256> → esclude sempre quel file
# <sha256>;<rule_id> → esclude solo se matcha quella regola YARA
# Esempio:
# 3f2a1b...d91a2 ; file sicuro noto
# 5a8c3e...b12e7;Ransomware_Generic_A
allowlist_file=config/allowlist.txt
# ---------------------------------
# Note
# ---------------------------------
# Le regole YARA possono includere un meta "severity" da 0 a 100.
# Solo le regole con severity>=80 o con tag "high" generano alert singoli.
# Le regole con severity bassa vengono ignorate se non ci sono più match (quorum>=2).
# I log vengono scritti in /tmp/BastionGuard-ransomware-events.log

View file

@ -0,0 +1,35 @@
# ================================================
# BastionGuard Anti-Ransomware — Config realtime (fanotify)
# ================================================
# Abilitare le regole YARA
enable_yara=1
# Directory contenente le regole YARA
# Se relativo → viene risolto come: /usr/share/BastionGuard/data/yara
yara_rules=/usr/share/BastionGuard/data/yara
# Directory/file da monitorare in realtime (separate da ";")
# ATTENZIONE: creare pochi watch massivi (fanotify MOUNT)
scan_path=/home
# Percorsi da ignorare (glob)
ignore_paths=/home/*/.cache;/home/*/.local/share/Trash;/usr/share;/var/cache
# Estensioni da ignorare
ignore_ext=.jpg;.jpeg;.png;.gif;.svg;.ico;.mp3;.mp4;.mov;.pdf;.doc;.docx;.odt;.ods;.sqlite;.db;.log;.bak;.tmp
# Estensioni sospette da monitorare (se suspicious_only=1)
suspicious_ext=.exe;.dll;.sys;.js;.vbs;.ps1;.sh;.elf;.bin;.scr;.lnk;.hta
# Scansiona solo file sospetti
# 1 = solo queste estensioni
# 0 = scansiona tutto (tranne ignore_ext)
suspicious_only=0
# Allowlist globale
# Formato:
# <sha256>
# <sha256>;<rule>
allowlist_file=/usr/share/BastionGuard/data/config/allowlist.txt

BIN
data/donate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
data/icon-close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
data/icon-minimize.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

62
data/icons/about.svg Normal file
View file

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
fill="#000000"
width="787.5"
height="787.5"
viewBox="0 0 126 126"
id="Layer_1"
version="1.1"
xml:space="preserve"
sodipodi:docname="about.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs2" /><sodipodi:namedview
id="namedview2"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"><inkscape:page
x="0"
y="0"
width="126"
height="126"
id="page2"
margin="0"
bleed="0" /></sodipodi:namedview>
<g
id="g2"
style="fill:#ffffff"
transform="translate(-1,-1)">
<path
d="M 64,1 C 29.3,1 1,29.3 1,64 1,98.7 29.3,127 64,127 98.7,127 127,98.7 127,64 127,29.3 98.7,1 64,1 Z m 0,118 C 33.7,119 9,94.3 9,64 9,33.7 33.7,9 64,9 c 30.3,0 55,24.7 55,55 0,30.3 -24.7,55 -55,55 z"
id="path1"
style="fill:#ffffff" />
<rect
height="40"
width="8"
x="60"
y="54.5"
id="rect1"
style="fill:#ffffff" />
<rect
height="8"
width="8"
x="60"
y="35.5"
id="rect2"
style="fill:#ffffff" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

40
data/icons/bank.svg Normal file
View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="666.68353"
height="677.43488"
viewBox="0 0 20.000506 20.323046"
fill="none"
version="1.1"
id="svg1"
sodipodi:docname="bank.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1">
<inkscape:page
x="0"
y="0"
width="20.000505"
height="20.323046"
id="page2"
margin="0"
bleed="0" />
</sodipodi:namedview>
<path
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#ffffff;stroke-linecap:round;stroke-linejoin:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="M 9.1408782,0.12578059 C 8.4101052,0.34440989 7.9614914,0.79696979 7.2092376,1.4656243 L 0.3361907,7.5749993 A 1.0001,1.0001 0 0 0 1.0002532,9.3230462 H 19.000253 A 1.0001,1.0001 0 0 0 19.664315,7.5749993 L 12.791269,1.4656243 C 12.038981,0.79697569 11.590401,0.34440989 10.859628,0.12578059 c -0.560774,-0.1677074 -1.1579758,-0.1677074 -1.7187498,0 z m 0.572266,1.91601561 c 0.187226,-0.055993 0.3869918,-0.055993 0.5742178,0 0.118027,0.035311 0.421516,0.2492974 1.173829,0.9179687 l 4.908203,4.3632813 H 3.6311126 L 8.5393162,2.9597649 c 0.752266,-0.6686654 1.055801,-0.882658 1.173828,-0.9179687 z M 10.054941,4.3249993 A 1,1 0 0 0 9.3342372,4.5828118 l -0.0059,0.00781 a 1,1 0 0 0 -0.06836,1.4121094 1,1 0 0 0 1.4121088,0.066406 l 0.0078,-0.00586 A 1,1 0 0 0 10.7483,4.6511712 1,1 0 0 0 10.054941,4.3249993 Z M 4.0002532,10.323046 a 1,1 0 0 0 -1,1 v 4 h -1 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 h 2 4 3.9999998 4 2 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 h -1 v -4 a 1,1 0 0 0 -1,-1 1,1 0 0 0 -1,1 v 4 h -2 v -4 a 1,1 0 0 0 -1,-1 1,1 0 0 0 -1,1 v 4 H 9.0002532 v -4 a 1,1 0 0 0 -1,-1 1,1 0 0 0 -1,1 v 4 h -2 v -4 a 1,1 0 0 0 -1,-1 z m -3,8 a 1,1 0 0 0 -0.99999999761,1 1,1 0 0 0 0.99999999761,1 H 19.000253 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z"
id="path1" />
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

27
data/icons/dashboard.svg Normal file
View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="600"
height="600"
viewBox="0 0 18 18"
fill="none"
version="1.1"
id="svg3"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs3" />
<path
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#ffffff;stroke-linecap:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="M 10,7 C 8.907293,7 8,7.907293 8,9 v 7 c 0,1.092707 0.907293,2 2,2 h 6 c 1.092707,0 2,-0.907293 2,-2 V 9 C 18,7.907293 17.092707,7 16,7 Z m 0,2 h 6 v 7 h -6 z"
id="path1" />
<path
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#ffffff;stroke-linecap:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="M 2,0 C 0.9072695,0 0,0.9072695 0,2 v 14 c 0,1.092731 0.9072936,2 2,2 h 3 c 1.0927064,0 2,-0.907269 2,-2 V 2 C 7,0.9072695 6.0927305,0 5,0 Z M 2,2 H 5 V 16 H 2 Z"
id="path2" />
<path
style="baseline-shift:baseline;display:inline;overflow:visible;opacity:1;vector-effect:none;fill:#ffffff;stroke-linecap:round;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="M 10,0 C 8.907269,0 8,0.9072936 8,2 v 2 c 0,1.0927064 0.907269,2 2,2 h 6 c 1.092731,0 2,-0.9072936 2,-2 V 2 C 18,0.9072936 17.092731,0 16,0 Z m 0,2 h 6 v 2 h -6 z"
id="path3" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

74
data/icons/donate.svg Normal file
View file

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
fill="#000000"
height="553.8811"
width="800"
version="1.1"
id="Layer_1"
viewBox="0 0 333 230.55301"
xml:space="preserve"
sodipodi:docname="donate.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs9" /><sodipodi:namedview
id="namedview9"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"><inkscape:page
x="0"
y="-1.7410135e-14"
width="333"
height="230.55299"
id="page2"
margin="0"
bleed="0" /></sodipodi:namedview>
<g
id="g9"
style="fill:#ffffff"
transform="translate(0,-51.224)">
<g
id="g8"
style="fill:#ffffff">
<g
id="g7"
style="fill:#ffffff">
<path
d="M 305.5,51.224 H 27.5 C 12.336,51.224 0,63.56 0,78.724 v 79.68 c 0,15.164 12.336,27.5 27.5,27.5 h 207.299 v 21.178 c -14.278,0 -22.698,10.174 -22.698,21.251 0,10.662 8.002,21.25 22.698,21.25 0,9.659 0,14.799 0,24.694 0,4.142 3.358,7.5 7.5,7.5 h 67.062 c 4.142,0 7.5,-3.358 7.5,-7.5 0,-10.426 0,-43.821 0,-53.818 0,-13.761 -11.195,-24.956 -24.957,-24.956 H 277.3 v -9.598 h 28.2 c 15.164,0 27.5,-12.336 27.5,-27.5 V 78.725 C 333,63.56 320.664,51.224 305.5,51.224 Z m -3.64,215.552 h -52.062 v -7.713 H 301.86 Z M 291.904,210.5 v 0.001 c 5.49,0 9.957,4.466 9.957,9.956 v 23.605 h -52.062 v -1.981 c 0,-4.142 -3.358,-7.5 -7.5,-7.5 h -8.948 c -3.446,0 -6.25,-2.804 -6.25,-6.25 0,-3.446 2.804,-6.251 6.25,-6.251 h 8.948 c 4.142,0 7.5,-3.358 7.5,-7.5 0,-9.412 0,-36.592 0,-45.929 0,-3.446 2.804,-6.251 6.25,-6.251 3.446,0 6.25,2.804 6.25,6.251 0,20.295 0,14.185 0,34.349 0,4.142 3.358,7.5 7.5,7.5 z M 318,158.404 c 0,6.893 -5.607,12.5 -12.5,12.5 h -28.201 v -2.251 c 0,-11.718 -9.533,-21.251 -21.25,-21.251 -11.717,0 -21.25,9.533 -21.25,21.251 v 2.251 H 27.5 c -6.893,0 -12.5,-5.607 -12.5,-12.5 v -79.68 c 0,-6.893 5.607,-12.5 12.5,-12.5 h 278 c 6.893,0 12.5,5.607 12.5,12.5 z"
id="path1"
style="fill:#ffffff" />
<path
d="m 63.762,97.102 h -6.864 c -1.803,0 -3.199,1.396 -3.199,3.199 v 34.318 c 0,1.745 1.396,3.199 3.199,3.199 h 6.864 c 11.226,0 20.3,-9.132 20.3,-20.417 0,-11.167 -9.074,-20.299 -20.3,-20.299 z m 0,34.26 h -3.606 v -27.804 h 3.606 c 7.678,0 13.843,6.224 13.843,13.844 0,7.736 -6.165,13.902 -13.843,13.96 z"
id="path2"
style="fill:#ffffff" />
<path
d="m 112.859,95.939 c -11.189,0 -20.009,9.433 -20.009,20.94 0,12.056 9.377,20.94 20.009,20.94 10.643,0 19.777,-9.467 19.777,-20.94 0,-10.988 -8.653,-20.94 -19.777,-20.94 z m 0,35.249 c -7.279,0 -13.378,-6.302 -13.378,-14.309 0,-7.598 5.614,-14.309 13.378,-14.309 7.359,0 13.146,6.668 13.146,14.309 0,8.123 -6.349,14.309 -13.146,14.309 z"
id="path3"
style="fill:#ffffff" />
<path
d="m 170.276,97.684 c -1.745,0 -3.141,1.454 -3.141,3.141 v 23.965 l -18.788,-26 c -1.732,-2.445 -5.886,-1.177 -5.7,1.978 0,0.058 0,0.058 0,0.058 v 33.795 c 0,1.745 1.396,3.199 3.199,3.199 1.687,0 3.141,-1.454 3.141,-3.199 V 110.48 l 18.613,25.826 c 0.058,0.116 0.174,0.232 0.29,0.349 1.987,2.382 5.584,0.803 5.584,-2.036 v -33.795 c 0.001,-1.686 -1.453,-3.14 -3.198,-3.14 z"
id="path4"
style="fill:#ffffff" />
<path
d="m 204.193,99.195 c -1.138,-2.783 -5.065,-2.691 -6.166,0 l -12.855,34.26 c -1.41,4.089 4.471,6.183 6.049,2.327 l 2.85,-7.562 h 14.135 l 2.85,7.562 c 0.67,1.843 2.775,2.38 4.071,1.861 1.687,-0.64 2.502,-2.501 1.92,-4.188 z m -7.795,22.628 4.712,-12.506 4.711,12.506 z"
id="path5"
style="fill:#ffffff" />
<path
d="m 244.1,97.102 h -24.837 c -4.311,0 -4.158,6.457 0,6.457 h 9.19 v 31.061 c 0,4.213 6.398,4.264 6.398,0 v -31.061 h 9.249 c 1.745,0 3.199,-1.512 3.199,-3.257 -0.001,-1.805 -1.455,-3.2 -3.199,-3.2 z"
id="path6"
style="fill:#ffffff" />
<path
d="m 279.12,103.559 c 1.686,0 3.199,-1.454 3.199,-3.257 0,-1.803 -1.513,-3.199 -3.199,-3.199 h -18.846 c -0.116,0 -0.116,0 -0.116,0 H 260.1 c -1.803,0 -3.199,1.396 -3.199,3.199 v 34.318 c 0,1.745 1.396,3.199 3.199,3.199 l 0.058,-0.058 c 0,0 0,0.058 0.116,0.058 h 18.846 c 1.686,0 3.199,-1.454 3.199,-3.199 0,-1.803 -1.513,-3.257 -3.199,-3.257 H 263.357 V 120.66 h 13.553 c 1.745,0 3.199,-1.454 3.199,-3.257 0,-1.687 -1.454,-3.199 -3.199,-3.199 h -13.553 v -10.645 z"
id="path7"
style="fill:#ffffff" />
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
data/icons/false.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

34
data/icons/identity.svg Normal file
View file

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
height="746.14221"
width="800"
version="1.1"
id="_x32_"
viewBox="0 0 512 477.53102"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs2" />
<style
type="text/css"
id="style1">
.st0{fill:#000000;}
</style>
<g
id="g2"
style="fill:#ffffff"
transform="translate(0,-17.235001)">
<path
class="st0"
d="m 317.796,61.373 c 0,-24.336 -19.802,-44.138 -44.138,-44.138 h -35.311 c -24.337,0 -44.138,19.802 -44.138,44.138 v 79.449 h 123.587 z m -35.311,17.656 c 0,4.88 -3.948,8.828 -8.828,8.828 h -35.311 c -4.88,0 -8.828,-3.948 -8.828,-8.828 V 61.373 c 0,-4.879 3.948,-8.828 8.828,-8.828 h 35.311 c 4.879,0 8.828,3.949 8.828,8.828 z"
id="path1"
style="fill:#ffffff" />
<path
class="st0"
d="M 491.965,124.003 H 335.451 v 16.776 c 0,9.801 -7.94,17.655 -17.655,17.655 H 194.209 c -9.707,0 -17.656,-7.854 -17.656,-17.655 V 124.003 H 20.039 C 8.918,124.003 0,133.012 0,144.047 v 330.77 c 0,11.035 8.918,19.949 20.039,19.949 h 471.926 c 11.034,0 20.035,-8.914 20.035,-19.949 v -330.77 c 0,-11.035 -9.001,-20.044 -20.035,-20.044 z M 117.88,271.979 c -1.238,-8.431 -2.94,-25.095 1.465,-33.458 0,0 -3.008,-5.465 -3.008,-12.681 12.668,1.802 53.117,-24.155 65.19,-3.017 17.496,-1.818 27.962,22.871 20.018,49.156 0,0 9.81,-0.457 5.888,13.284 -3.672,12.897 -6.625,15.854 -11.788,17.69 -2.216,12.534 -5.936,23.604 -10.837,29.052 0,6.534 0,11.301 0,15.121 0,0.379 0.073,0.793 0.181,1.207 l -17.164,8.25 v 12.129 H 151.67 v -12.129 l -17.173,-8.268 c 0.108,-0.413 0.181,-0.81 0.181,-1.189 0,-3.82 0,-8.586 0,-15.121 -4.901,-5.448 -8.604,-16.518 -10.827,-29.052 -5.173,-1.837 -8.117,-4.793 -11.798,-17.69 -3.772,-13.19 5.099,-13.284 5.827,-13.284 z m 41.871,159.992 c -57.957,0 -97.794,-7.509 -98.414,-14.759 -2.504,-30.19 36.595,-46.311 52.522,-51.906 1.561,-0.56 3.371,-1.422 5.25,-2.474 l 30.397,42.044 2.164,-27.544 h 16.155 l 2.164,27.544 30.388,-42.044 c 1.828,0.999 3.612,1.853 5.259,2.474 15.81,5.906 55.026,21.69 52.513,51.906 -0.613,7.251 -40.449,14.759 -98.398,14.759 z m 212.566,-20.12 h -52.962 v -17.655 h 52.962 z m 52.966,-76.51 H 319.356 v -17.655 h 105.928 v 17.655 z m 0,-76.509 H 319.356 v -17.656 h 105.928 v 17.656 z"
id="path2"
style="fill:#ffffff" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

4
data/icons/log-dash.svg Normal file
View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.2686 16.2686L15 18M13 3H8.2C7.0799 3 6.51984 3 6.09202 3.21799C5.71569 3.40973 5.40973 3.71569 5.21799 4.09202C5 4.51984 5 5.0799 5 6.2V17.8C5 18.9201 5 19.4802 5.21799 19.908C5.40973 20.2843 5.71569 20.5903 6.09202 20.782C6.51984 21 7.0799 21 8.2 21H15.8C16.9201 21 17.4802 21 17.908 20.782C18.2843 20.5903 18.5903 20.2843 18.782 19.908C19 19.4802 19 18.9201 19 17.8V9M13 3L19 9M13 3V7.4C13 7.96005 13 8.24008 13.109 8.45399C13.2049 8.64215 13.3578 8.79513 13.546 8.89101C13.7599 9 14.0399 9 14.6 9H19M14 14.5C14 15.8807 12.8807 17 11.5 17C10.1193 17 9 15.8807 9 14.5C9 13.1193 10.1193 12 11.5 12C12.8807 12 14 13.1193 14 14.5Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 956 B

90
data/icons/log.svg Normal file
View file

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
fill="#000000"
version="1.1"
id="Capa_1"
width="580.39252"
height="800"
viewBox="0 0 397.77999 548.291"
xml:space="preserve"
sodipodi:docname="log.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs12" /><sodipodi:namedview
id="namedview12"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"><inkscape:page
x="0"
y="0"
width="397.78"
height="548.29102"
id="page2"
margin="0"
bleed="0" /></sodipodi:namedview>
<g
id="g12"
style="fill:#ffffff"
transform="translate(-75.255005)">
<g
id="g2"
style="fill:#ffffff">
<path
d="m 256.08,417.128 c -18.09,0 -28.625,17.209 -28.625,40.21 0,23.183 10.885,39.52 28.795,39.52 18.09,0 28.447,-17.209 28.447,-40.216 0.005,-21.25 -10.175,-39.514 -28.617,-39.514 z"
id="path1"
style="fill:#ffffff" />
<path
d="m 472.929,131.39 c -0.031,-2.514 -0.829,-4.997 -2.556,-6.96 L 364.656,3.677 C 364.635,3.643 364.603,3.633 364.572,3.602 363.942,2.898 363.218,2.318 362.44,1.806 362.21,1.657 361.978,1.523 361.737,1.387 361.054,1.022 360.35,0.72 359.616,0.499 359.416,0.441 359.239,0.36 359.039,0.308 358.231,0.113 357.411,0 356.572,0 H 96.757 C 84.904,0 75.255,9.649 75.255,21.502 V 526.79 c 0,11.858 9.649,21.501 21.502,21.501 h 354.775 c 11.863,0 21.503,-9.643 21.503,-21.501 V 132.595 c 10e-4,-0.404 -0.064,-0.8 -0.106,-1.205 z M 195.477,516.164 h -73.93 V 397.812 h 26.867 v 95.88 h 47.063 z m 59.376,1.937 c -35.124,0 -55.667,-26.515 -55.667,-60.226 0,-35.481 22.651,-61.996 57.596,-61.996 36.355,0 56.198,27.219 56.198,59.886 0,38.803 -23.528,62.336 -58.127,62.336 z m 174.58,-7.375 c -8.263,2.808 -23.884,6.672 -39.518,6.672 -21.596,0 -37.229,-5.443 -48.115,-15.979 -10.889,-10.188 -16.856,-25.643 -16.683,-43.028 0.177,-39.335 28.792,-61.817 67.611,-61.817 15.276,0 27.041,2.992 32.835,5.794 l -5.617,21.43 c -6.492,-2.814 -14.571,-5.093 -27.569,-5.093 -22.305,0 -39.161,12.647 -39.161,38.279 0,24.408 15.282,38.813 37.234,38.813 6.142,0 11.056,-0.704 13.166,-1.753 v -24.762 h -18.258 v -20.897 h 44.074 v 62.341 z M 96.757,365.081 V 21.502 H 345.82 v 110.011 c 0,5.935 4.81,10.751 10.752,10.751 h 94.961 l 0.011,222.816 H 96.757 Z"
id="path2"
style="fill:#ffffff" />
</g>
<g
id="g11"
style="fill:#ffffff">
<path
d="m 355.221,91.376 h -15.229 v 25.985 c 0,4.699 -3.81,8.509 -8.508,8.509 -4.705,0 -8.51,-3.811 -8.51,-8.509 V 91.376 h -26.878 v 25.985 c 0,4.699 -3.81,8.509 -8.508,8.509 -4.703,0 -8.51,-3.811 -8.51,-8.509 V 91.376 h -33.155 v 25.985 c 0,4.699 -3.811,8.509 -8.51,8.509 -4.703,0 -8.509,-3.811 -8.509,-8.509 V 91.376 h -26.877 v 25.985 c 0,4.699 -3.811,8.509 -8.51,8.509 -4.703,0 -8.509,-3.811 -8.509,-8.509 V 91.376 h -7.165 c -8.906,0 -16.126,7.218 -16.126,16.127 v 209.641 c 0,8.907 7.221,16.126 16.126,16.126 H 355.23 c 8.909,0 16.127,-7.219 16.127,-16.126 V 107.503 C 371.348,98.595 364.13,91.376 355.221,91.376 Z m 2.694,225.773 H 171.566 V 155.887 h 186.349 z"
id="path3"
style="fill:#ffffff" />
<path
d="m 202.023,88.689 c 0,-4.698 -3.811,-8.509 -8.51,-8.509 -4.703,0 -8.509,3.811 -8.509,8.509 v 2.688 h 17.024 v -2.688 z"
id="path4"
style="fill:#ffffff" />
<path
d="m 245.924,88.689 c 0,-4.698 -3.811,-8.509 -8.51,-8.509 -4.703,0 -8.509,3.811 -8.509,8.509 v 2.688 h 17.024 v -2.688 z"
id="path5"
style="fill:#ffffff" />
<path
d="m 296.092,88.689 c 0,-4.698 -3.811,-8.509 -8.508,-8.509 -4.705,0 -8.511,3.811 -8.511,8.509 v 2.688 h 17.023 v -2.688 z"
id="path6"
style="fill:#ffffff" />
<path
d="m 339.993,88.689 c 0,-4.698 -3.81,-8.509 -8.508,-8.509 -4.705,0 -8.51,3.811 -8.51,8.509 v 2.688 h 17.023 v -2.688 z"
id="path7"
style="fill:#ffffff" />
<path
d="m 193.514,186.795 h 137.971 c 1.485,0 2.688,-1.205 2.688,-2.688 0,-1.483 -1.202,-2.688 -2.688,-2.688 H 193.514 c -1.483,0 -2.688,1.205 -2.688,2.688 0,1.483 1.205,2.688 2.688,2.688 z"
id="path8"
style="fill:#ffffff" />
<path
d="m 193.514,218.15 h 137.971 c 1.485,0 2.688,-1.205 2.688,-2.688 0,-1.483 -1.202,-2.688 -2.688,-2.688 H 193.514 c -1.483,0 -2.688,1.205 -2.688,2.688 0,1.483 1.205,2.688 2.688,2.688 z"
id="path9"
style="fill:#ffffff" />
<path
d="m 193.514,254.885 h 137.971 c 1.485,0 2.688,-1.204 2.688,-2.688 0,-1.484 -1.202,-2.688 -2.688,-2.688 H 193.514 c -1.483,0 -2.688,1.205 -2.688,2.688 0,1.483 1.205,2.688 2.688,2.688 z"
id="path10"
style="fill:#ffffff" />
<path
d="m 193.514,286.241 h 137.971 c 1.485,0 2.688,-1.208 2.688,-2.688 0,-1.48 -1.202,-2.688 -2.688,-2.688 H 193.514 c -1.483,0 -2.688,1.207 -2.688,2.688 0,1.481 1.205,2.688 2.688,2.688 z"
id="path11"
style="fill:#ffffff" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5 KiB

83
data/icons/phishing.svg Normal file
View file

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="800"
height="800"
viewBox="0 0 48 48"
version="1.1"
id="svg9"
sodipodi:docname="phishing.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview9"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1">
<inkscape:page
x="0"
y="0"
width="48"
height="48"
id="page2"
margin="0"
bleed="0" />
</sodipodi:namedview>
<defs
id="defs1">
<style
id="style1">.a{fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;}</style>
</defs>
<path
class="a"
d="m 34.5822,24.338 v 7.4925"
id="path1"
style="fill:#000000" />
<path
class="a"
d="m 34.5822,24.338 a 10.5839,10.5839 0 0 0 -16.3092,-8.9 m -2.7514,2.5665 a 10.5355,10.5355 0 0 0 -2.1038,6.3337 v 13.8944"
id="path2"
style="fill:#000000" />
<path
class="a"
d="m 9.6694,41.981 a 3.7484,3.7484 0 0 1 3.7484,-3.7484"
id="path3"
style="fill:#000000" />
<path
class="a"
d="M 9.6694,41.981 H 38.3306 A 3.7484,3.7484 0 0 0 34.5822,38.2326 H 13.4178"
id="path4"
style="fill:#000000" />
<path
class="a"
d="M 7.9105,9.418 40.2537,41.7614"
id="path5"
style="fill:#000000" />
<path
class="a"
d="m 5.5,24.5192 h 4.6914"
id="path6"
style="fill:#000000" />
<path
class="a"
d="M 37.8086,24.5192 H 42.5"
id="path7"
style="fill:#000000" />
<path
class="a"
d="M 24,10.7105 V 6.019"
id="path8"
style="fill:#000000" />
<path
class="a"
d="m 33.7641,14.755 3.3174,-3.3174"
id="path9"
style="fill:#000000" />
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

47
data/icons/privacy.svg Normal file
View file

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="466.66663"
height="733.33337"
viewBox="0 0 13.999999 22.000001"
version="1.1"
id="svg2"
sodipodi:docname="privacy.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<sodipodi:namedview
id="namedview2"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1">
<inkscape:page
x="0"
y="0"
width="13.999999"
height="22.000002"
id="page2"
margin="0"
bleed="0" />
</sodipodi:namedview>
<g
id="g2"
transform="translate(-4.9999999,-0.99999995)">
<path
fill="none"
d="M 0,0 H 24 V 24 H 0 Z"
id="path1" />
<path
d="M 11,21 V 19.93 A 7.002,7.002 0 0 1 5,13 V 8 a 7,7 0 1 1 14,0 v 5 a 7.002,7.002 0 0 1 -6,6.93 V 21 h 4 v 2 H 7 V 21 Z M 12,3 A 5,5 0 0 0 7,8 v 5 a 5,5 0 0 0 10,0 V 8 A 5,5 0 0 0 12,3 Z m 0,6 a 1,1 0 1 0 0,-2 1,1 0 0 0 0,2 z m 0,2 a 3,3 0 1 1 0,-6 3,3 0 0 1 0,6 z"
id="path2"
style="fill:#ffffff" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

20
data/icons/quarantine.svg Normal file
View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
fill="#000000"
width="733.33337"
height="733.33337"
viewBox="0 0 22.000001 22.000001"
enable-background="new 0 0 24 24"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<path
d="m 18.8,17.4 c 0,0 0,0 0,0 l -4,-4 c 0,0 0,0 0,0 l -2.1,-2.1 v 0 L 4.7000001,3.3000001 c 0,0 0,0 0,0 l -3,-3.00000005 c -0.4,-0.4 -1.00000005,-0.4 -1.40000005,0 -0.4,0.4 -0.4,1.00000005 0,1.40000005 l 3.70000005,3.7 c -1.1,1.3 -1.8,2.9 -1.9,4.5999999 h -1.1 C 0.40000005,10 4.9572686e-8,10.4 4.9572686e-8,11 4.9572686e-8,11.6 0.40000005,12 1.0000001,12 h 1.1 c 0.2,1.7 0.9,3.3 1.9,4.6 l -0.8,0.8 c -0.4,0.4 -0.4,1 0,1.4 0.4,0.4 1,0.4 1.4,0 l 0.8,-0.8 c 1.3,1.1 2.9,1.7 4.5999999,1.9 V 21 c 0,0.6 0.4,1 1,1 0.6,0 1,-0.4 1,-1 V 19.9 C 13.7,19.7 15.3,19 16.6,18 l 3.7,3.7 c 0.2,0.2 0.4,0.3 0.7,0.3 0.3,0 0.5,-0.1 0.7,-0.3 0.4,-0.4 0.4,-1 0,-1.4 z M 8.0000001,15 c -0.6,0 -1,-0.4 -1,-1 0,-0.6 0.4,-1 1,-1 0.6,0 1,0.4 1,1 0,0.6 -0.4,1 -1,1 z m 0.5,-4 c -0.8,0 -1.5,-0.7 -1.5,-1.4999999 0,-0.3 0.1,-0.6 0.3,-0.8 l 2.1,2.0999999 c -0.3,0.1 -0.6,0.2 -0.9,0.2 z M 19.9,12 H 21 c 0.6,0 1,-0.4 1,-1 0,-0.6 -0.4,-1 -1,-1 H 19.9 C 19.7,8.3000001 19,6.7000001 18,5.4000001 l 0.8,-0.8 c 0.4,-0.4 0.4,-1 0,-1.4 -0.4,-0.4 -1,-0.4 -1.4,0 l -0.8,0.8 c -1.3,-1.1 -2.9,-1.7 -4.6,-1.9 v -1.1 C 12,0.40000005 11.6,4.9572686e-8 11,4.9572686e-8 10.4,4.9572686e-8 10,0.40000005 10,1.0000001 v 1.1 c -0.9999999,0.1 -1.9999999,0.4 -2.8999999,0.8 L 19.1,14.9 C 19.5,14 19.8,13 19.9,12 Z M 14,9.0000001 c -0.6,0 -1,-0.4 -1,-1 0,-0.6 0.4,-1 1,-1 0.6,0 1,0.4 1,1 0,0.6 -0.4,1 -1,1 z"
id="path1"
style="fill:#ffffff" />
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

26
data/icons/ransomware.svg Normal file
View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="666.66663"
height="666.66711"
viewBox="0 0 19.999999 20.000013"
version="1.1"
id="svg2"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<g
id="g2"
transform="translate(-1.9999999,-1.9999864)">
<path
fill="none"
d="M 0,0 H 24 V 24 H 0 Z"
id="path1" />
<path
d="M 4.257,5.671 6.394,7.808 A 7,7 0 1 0 7.808,6.394 L 5.67,4.257 A 9.959,9.959 0 0 1 12,2 C 17.523,2 22,6.477 22,12 22,17.523 17.523,22 12,22 6.477,22 2,17.523 2,12 2,9.599 2.846,7.395 4.257,5.671 Z M 7.828,9.243 12,13.414 13.414,12 9.243,7.828 A 5,5 0 1 1 7.829,9.242 Z"
id="path2"
style="fill:#ffffff" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 865 B

32
data/icons/samba.svg Normal file
View file

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="699.72144"
height="556.565"
viewBox="0 0 41.983286 33.3939"
version="1.1"
id="svg3"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1">
<style
id="style1">.a{fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;}</style>
</defs>
<path
class="a"
d="m 37.680093,4.7300001 h -16.91 c -2,-0.1 -5.93,-4.23000007 -8.19,-4.23000007 H 2.6800935 A 2.18,2.18 0 0 0 0.50009345,2.6794001 c 0,0.0169 0,0.0337 6e-4,0.0506 v 0 V 10.02 H 39.500693 V 6.6000001 a 1.83,1.83 0 0 0 -1.79,-1.87 z"
id="path1"
style="stroke:#ffffff;stroke-opacity:1" />
<path
class="a"
d="M 39.500093,23.6544 V 10.01 H 0.50009345 v 18.72 a 2.18,2.18 0 0 0 2.16000005,2.2 h 0.01 15.7945995"
id="path2"
style="stroke:#ffffff;stroke-opacity:1" />
<path
class="a"
d="m 28.755693,16.4092 a 7.7231,7.7231 0 0 1 8.0016,6.177 5.1751,5.1751 0 0 1 0.038,10.3077 h -14.4573 a 6.2255,6.2255 0 0 1 0,-12.3794 7.6024,7.6024 0 0 1 6.4177,-4.1053 z"
id="path3"
style="stroke:#ffffff;stroke-opacity:1" />
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
data/icons/scan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

22
data/icons/scan.svg Normal file
View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="666.66663"
height="600"
viewBox="0 0 19.999999 18"
fill="none"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="m 3.0000001,5 a 1,1 0 0 1 -2,0 V 2.923 c 0,-0.76 0.082,-1.185 0.319,-1.627 0.223,-0.419 0.558,-0.754 0.977,-0.977 0.442,-0.237 0.866,-0.319 1.627,-0.319 h 2.077 a 1,1 0 0 1 0,2 h -2.077 c -0.459,0 -0.57,0.022 -0.684,0.082 a 0.364,0.364 0 0 0 -0.157,0.157 c -0.06,0.113 -0.082,0.225 -0.082,0.684 z m 3,11 a 1,1 0 1 1 0,2 h -2.077 c -0.76,0 -1.185,-0.082 -1.627,-0.319 a 2.363,2.363 0 0 1 -0.977,-0.977 c -0.237,-0.442 -0.319,-0.866 -0.319,-1.627 V 13 a 1,1 0 1 1 2,0 v 2.077 c 0,0.459 0.022,0.57 0.082,0.684 0.038,0.07 0.087,0.12 0.157,0.157 0.113,0.06 0.225,0.082 0.684,0.082 z M 13,1 a 1,1 0 0 0 1,1 h 2.077 c 0.459,0 0.57,0.022 0.684,0.082 0.07,0.038 0.12,0.087 0.157,0.157 C 16.978,2.352 17,2.464 17,2.923 V 5 a 1,1 0 1 0 2,0 V 2.923 C 19,2.163 18.918,1.738 18.681,1.296 A 2.363,2.363 0 0 0 17.704,0.319 C 17.262,0.082 16.838,0 16.077,0 H 14 a 1,1 0 0 0 -1,1 z m 4,12 a 1,1 0 1 1 2,0 v 2.077 c 0,0.76 -0.082,1.185 -0.319,1.627 a 2.364,2.364 0 0 1 -0.977,0.977 C 17.262,17.918 16.838,18 16.077,18 H 14 a 1,1 0 1 1 0,-2 h 2.077 c 0.459,0 0.57,-0.022 0.684,-0.082 a 0.363,0.363 0 0 0 0.157,-0.157 C 16.978,15.648 17,15.536 17,15.077 Z M 1.0000001,8 a 1,1 0 1 0 0,2 H 19 a 1,1 0 1 0 0,-2 z"
fill="#000000"
id="path1"
style="fill:#ffffff" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

39
data/icons/settings.svg Normal file
View file

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
width="799.96832"
height="800"
viewBox="0 0 29.998812 30"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<title
id="title1">settings</title>
<desc
id="desc1">Created with Sketch Beta.</desc>
<defs
id="defs1" />
<g
id="Page-1"
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd"
sketch:type="MSPage"
transform="translate(-7.0398476e-4)">
<g
id="Icon-Set"
sketch:type="MSLayerGroup"
transform="translate(-101,-360)"
fill="#000000">
<path
d="m 128.52,381.134 -0.992,1.732 c -0.274,0.479 -0.88,0.642 -1.355,0.366 l -2.755,-1.604 c -1.398,1.591 -3.289,2.731 -5.435,3.171 V 387 c 0,0.553 -0.443,1 -0.991,1 h -1.984 c -0.548,0 -0.991,-0.447 -0.991,-1 v -2.201 c -2.146,-0.44 -4.037,-1.58 -5.435,-3.171 l -2.755,1.604 c -0.475,0.276 -1.081,0.113 -1.355,-0.366 l -0.992,-1.732 c -0.274,-0.478 -0.111,-1.09 0.363,-1.365 l 2.766,-1.612 c -0.329,-0.994 -0.526,-2.051 -0.526,-3.157 0,-1.106 0.197,-2.162 0.526,-3.157 l -2.766,-1.611 c -0.474,-0.276 -0.637,-0.887 -0.363,-1.366 l 0.992,-1.732 c 0.274,-0.478 0.88,-0.642 1.355,-0.366 l 2.755,1.604 c 1.398,-1.591 3.289,-2.731 5.435,-3.171 V 363 c 0,-0.553 0.443,-1 0.991,-1 h 1.984 c 0.548,0 0.991,0.447 0.991,1 v 2.201 c 2.146,0.44 4.037,1.58 5.435,3.171 l 2.755,-1.604 c 0.475,-0.276 1.081,-0.112 1.355,0.366 l 0.992,1.732 c 0.274,0.479 0.111,1.09 -0.363,1.366 l -2.766,1.611 c 0.329,0.995 0.526,2.051 0.526,3.157 0,1.106 -0.197,2.163 -0.526,3.157 l 2.766,1.612 c 0.474,0.275 0.637,0.887 0.363,1.365 z m 1.488,-2.598 -2.323,-1.352 c 0.13,-0.71 0.216,-1.435 0.216,-2.184 0,-0.748 -0.086,-1.474 -0.216,-2.184 l 2.323,-1.352 c 0.949,-0.552 1.273,-1.776 0.725,-2.732 l -1.983,-3.464 c -0.547,-0.956 -1.761,-1.285 -2.709,-0.732 l -2.347,1.365 c -1.096,-0.94 -2.342,-1.709 -3.727,-2.204 V 362 c 0,-1.104 -0.888,-2 -1.984,-2 h -3.966 c -1.096,0 -1.984,0.896 -1.984,2 v 1.697 c -1.385,0.495 -2.631,1.264 -3.727,2.204 l -2.347,-1.365 c -0.948,-0.553 -2.162,-0.224 -2.709,0.732 l -1.983,3.464 c -0.548,0.956 -0.223,2.18 0.725,2.732 l 2.323,1.352 c -0.13,0.71 -0.216,1.436 -0.216,2.184 0,0.749 0.086,1.474 0.216,2.184 l -2.323,1.352 c -0.948,0.552 -1.273,1.776 -0.725,2.732 l 1.983,3.464 c 0.547,0.956 1.761,1.285 2.709,0.732 l 2.347,-1.365 c 1.096,0.94 2.342,1.71 3.727,2.204 V 388 c 0,1.104 0.888,2 1.984,2 h 3.966 c 1.096,0 1.984,-0.896 1.984,-2 v -1.697 c 1.385,-0.494 2.631,-1.264 3.727,-2.204 l 2.347,1.365 c 0.948,0.553 2.162,0.224 2.709,-0.732 l 1.983,-3.464 c 0.548,-0.956 0.224,-2.18 -0.725,-2.732 z M 116,378 c -1.643,0 -2.975,-1.343 -2.975,-3 0,-1.656 1.332,-3 2.975,-3 1.643,0 2.975,1.344 2.975,3 0,1.657 -1.332,3 -2.975,3 z m 0,-8 c -2.739,0 -4.958,2.238 -4.958,5 0,2.762 2.219,5 4.958,5 2.739,0 4.959,-2.238 4.959,-5 0,-2.762 -2.22,-5 -4.959,-5 z"
id="settings"
sketch:type="MSShapeGroup"
style="fill:#ffffff" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

9
data/icons/status.svg Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.87988 18.1501V16.0801" stroke="#292D32" stroke-width="1.5" stroke-linecap="round"/>
<path d="M12 18.15V14.01" stroke="#292D32" stroke-width="1.5" stroke-linecap="round"/>
<path d="M17.1201 18.1499V11.9299" stroke="#292D32" stroke-width="1.5" stroke-linecap="round"/>
<path d="M17.1199 5.8501L16.6599 6.3901C14.1099 9.3701 10.6899 11.4801 6.87988 12.4301" stroke="#292D32" stroke-width="1.5" stroke-linecap="round"/>
<path d="M14.1899 5.8501H17.1199V8.7701" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 961 B

BIN
data/icons/true.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="-1.5 0 19 19" xmlns="http://www.w3.org/2000/svg" class="cf-icon-svg"><path d="M5.857 3.882v3.341a1.03 1.03 0 0 1-2.058 0v-.97a5.401 5.401 0 0 0-1.032 2.27 1.03 1.03 0 1 1-2.02-.395A7.462 7.462 0 0 1 2.235 4.91h-.748a1.03 1.03 0 1 1 0-2.058h3.34a1.03 1.03 0 0 1 1.03 1.03zm-3.25 9.237a1.028 1.028 0 0 1-1.358-.523 7.497 7.497 0 0 1-.37-1.036 1.03 1.03 0 1 1 1.983-.55 5.474 5.474 0 0 0 .269.751 1.029 1.029 0 0 1-.524 1.358zm2.905 2.439a1.028 1.028 0 0 1-1.42.322 7.522 7.522 0 0 1-.885-.652 1.03 1.03 0 0 1 1.34-1.563 5.435 5.435 0 0 0 .643.473 1.03 1.03 0 0 1 .322 1.42zm3.68.438a1.03 1.03 0 0 1-1.014 1.044h-.106a7.488 7.488 0 0 1-.811-.044 1.03 1.03 0 0 1 .224-2.046 5.41 5.41 0 0 0 .664.031h.014a1.03 1.03 0 0 1 1.03 1.015zm.034-12.847a1.03 1.03 0 0 1-1.029 1.01h-.033a1.03 1.03 0 0 1 .017-2.06h.017l.019.001a1.03 1.03 0 0 1 1.009 1.05zm3.236 11.25a1.029 1.029 0 0 1-.3 1.425 7.477 7.477 0 0 1-.797.453 1.03 1.03 0 1 1-.905-1.849 5.479 5.479 0 0 0 .578-.328 1.03 1.03 0 0 1 1.424.3zM10.475 3.504a1.029 1.029 0 0 1 1.41-.359l.018.011a1.03 1.03 0 1 1-1.06 1.764l-.01-.006a1.029 1.029 0 0 1-.358-1.41zm4.26 9.445a7.5 7.5 0 0 1-.315.56 1.03 1.03 0 1 1-1.749-1.086 5.01 5.01 0 0 0 .228-.405 1.03 1.03 0 1 1 1.836.93zm-1.959-6.052a1.03 1.03 0 0 1 1.79-1.016l.008.013a1.03 1.03 0 1 1-1.79 1.017zm2.764 2.487a9.327 9.327 0 0 1 0 .366 1.03 1.03 0 0 1-1.029 1.005h-.025A1.03 1.03 0 0 1 13.482 9.7a4.625 4.625 0 0 0 0-.266 1.03 1.03 0 0 1 1.003-1.055h.026a1.03 1.03 0 0 1 1.029 1.004z"/></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

24
data/icons/update.svg Normal file
View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
fill="#000000"
width="600"
height="666.66663"
viewBox="0 0 18 19.999999"
id="update"
class="icon glyph"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs2" />
<path
d="M 2,10 A 7,7 0 0 1 13.89,5.0000001 H 11 a 1,1 0 0 0 0,2 h 5.08 a 1,1 0 0 0 0.92,-1 v -5 a 1,1 0 0 0 -2,0 v 2.32 A 9,9 0 0 0 0,10 1,1 0 0 0 2,10 Z"
id="path1"
style="fill:#ffffff" />
<path
d="M 17,9.0000001 A 1,1 0 0 0 16,10 7,7 0 0 1 4.11,15 H 7 A 1,1 0 0 0 7,13 H 1.92 A 1,1 0 0 0 1,14 v 5 a 1,1 0 0 0 2,0 V 16.68 A 9,9 0 0 0 18,10 1,1 0 0 0 17,9.0000001 Z"
id="path2"
style="fill:#ffffff" />
</svg>

After

Width:  |  Height:  |  Size: 833 B

BIN
data/icons/usb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

33
data/icons/usb.svg Normal file
View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
height="799.99841"
width="443.32028"
version="1.1"
id="_x32_"
viewBox="0 0 283.72498 511.99898"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs2" />
<style
type="text/css"
id="style1">
.st0{fill:#000000;}
</style>
<g
id="g2"
transform="translate(-114.137)">
<path
class="st0"
d="M 352.209,0 H 159.8 V 163.062 H 352.209 Z M 185.893,92.543 V 64.01 h 42.391 v 28.534 h -42.391 z m 97.832,0 V 64.01 h 42.391 v 28.534 h -42.391 z"
id="path1"
style="fill:#ffffff" />
<path
class="st0"
d="m 114.137,189.147 v 180.994 c 0,78.341 63.51,141.858 141.858,141.858 78.357,0 141.867,-63.518 141.867,-141.858 V 189.147 Z"
id="path2"
style="fill:#ffffff" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 923 B

9
data/icons/version.svg Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" ?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 128 128" id="Layer_1" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<path d="M64,1C29.3,1,1,29.3,1,64s28.3,63,63,63s63-28.3,63-63S98.7,1,64,1z M64,119C33.7,119,9,94.3,9,64S33.7,9,64,9 s55,24.7,55,55S94.3,119,64,119z"/>
<rect height="40" width="8" x="60" y="54.5"/>
<rect height="8" width="8" x="60" y="35.5"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 568 B

674
data/license/COPYING Normal file
View file

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

BIN
data/logo-sidebar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
data/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

179
data/logo.svg Normal file
View file

@ -0,0 +1,179 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg
height="665.04327"
width="661.45227"
version="1.1"
id="_x36_"
viewBox="0 0 423.32945 425.62769"
xml:space="preserve"
sodipodi:docname="logo.svg"
inkscape:export-filename="logo-sidebar.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"><title
id="title1">BastionGuard Logo</title><defs
id="defs8"><filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter10"
x="-0.032016788"
y="-0.030292107"
width="1.0640336"
height="1.0605842"><feGaussianBlur
inkscape:collect="always"
stdDeviation="4.7016252"
id="feGaussianBlur10" /></filter><filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter12"
x="-0.053720801"
y="-0.051762866"
width="1.1074416"
height="1.1035257"><feGaussianBlur
inkscape:collect="always"
stdDeviation="8.6562812"
id="feGaussianBlur12" /></filter></defs><sodipodi:namedview
id="namedview8"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"><inkscape:page
x="0"
y="0"
width="423.32944"
height="425.62769"
id="page2"
margin="0"
bleed="0" /></sodipodi:namedview>
<g
id="g8-5"
transform="matrix(0.6172259,0,0,0.66769056,67.191288,41.885064)"
style="display:inline;filter:url(#filter10)"
inkscape:label="scudo_1">
<g
id="g7-2"
style="display:inline;filter:url(#filter10)"
inkscape:label="scudo_path">
<path
style="fill:#000080"
d="m 234.069,76.947 c -30.837,29.14 -88.066,71.389 -176.221,92.92 0.613,23.74 3.007,54.442 11.742,87.595 H 234.07 V 76.947 Z"
id="path4-9" />
<path
style="opacity:0.984837;fill:#f9f9f9"
d="M 396.472,166.238 C 358.32,155.62 326.348,141.165 300.188,125.982 271.254,109.157 249.398,91.43 234.07,76.947 v 180.515 h 164.506 c 8.748,-33.153 11.103,-63.841 11.709,-87.595 -4.685,-1.142 -9.304,-2.342 -13.813,-3.629 z"
id="path5-1" />
<path
style="opacity:1;fill:#ffffff"
d="m 69.589,257.462 c 6.012,22.824 15.011,46.8 28.604,70.512 14.78,25.718 34.882,51.113 62.293,74.285 20.276,17.202 44.532,33.176 73.582,47.191 V 257.462 Z"
id="path6-2" />
<path
style="fill:#000080"
d="M 234.069,449.449 C 338.559,398.981 381.202,323.341 398.575,257.461 H 234.069 Z"
id="path7-7" />
</g><path
style="fill:#000080"
d="M 468.125,128.73 C 304.284,99.474 234.069,0 234.069,0 c 0,0 -70.222,99.474 -234.056,128.73 0,64.367 -5.858,277.944 234.056,383.27 C 473.976,406.675 468.125,193.098 468.125,128.73 Z"
id="path1-3" />
<path
style="fill:#ffffff"
d="M 234.069,466.88 C 63.977,384.073 43.61,240.378 41.255,161.786 136.604,137.994 199.322,92.536 234.069,60.228 c 34.747,32.308 97.458,77.766 192.807,101.558 -2.348,78.592 -22.721,222.287 -192.807,305.094 z"
id="path2-5" />
<path
style="fill:#f0c57b"
d="M 410.284,169.867 C 408.471,240.817 391.15,373.583 234.069,449.45 205.019,435.435 180.763,419.461 160.487,402.259 133.076,379.086 112.974,353.691 98.194,327.974 64.848,269.81 58.874,209.949 57.848,169.868 c 88.156,-21.531 145.384,-63.78 176.221,-92.92 15.328,14.483 37.185,32.21 66.118,49.035 26.16,15.183 58.132,29.637 96.284,40.256 4.51,1.286 9.129,2.486 13.813,3.628 z"
id="path3-6" />
<path
style="opacity:0.0855691;fill:#000074;fill-opacity:1"
d="m 234.069,0 c 0,0 70.215,99.474 234.056,128.73 0,64.367 5.851,277.944 -234.056,383.27 z"
id="path8-0" />
</g><ellipse
style="display:inline;fill:#000000;fill-opacity:1;stroke-width:0.177894;stroke-linecap:square;stroke-linejoin:round;stroke-dasharray:0.355793, 0.177894;stroke-opacity:0.988387;paint-order:stroke fill markers;filter:url(#filter12)"
id="path9-6"
cx="214.13663"
cy="221.45055"
rx="193.36156"
ry="200.67548"
transform="matrix(0.98845648,0,0,0.96099936,5.6074089e-6,5.8183692e-6)" /><ellipse
style="display:inline;opacity:1;fill:#000080;fill-opacity:1;stroke-width:0.173375;stroke-linecap:square;stroke-linejoin:round;stroke-dasharray:0.346755, 0.173375;stroke-opacity:0.988387;paint-order:stroke fill markers"
id="path9"
cx="211.66473"
cy="212.81384"
rx="193.36156"
ry="190.60954" /><g
id="g8"
transform="matrix(0.6172259,0,0,0.66769053,67.190986,41.396986)"
style="display:inline"
inkscape:label="scudo">
<path
style="display:inline;fill:#000080"
d="M 468.125,128.73 C 304.284,99.474 234.069,0 234.069,0 c 0,0 -70.222,99.474 -234.056,128.73 0,64.367 -5.858,277.944 234.056,383.27 C 473.976,406.675 468.125,193.098 468.125,128.73 Z"
id="path1" />
<path
style="display:inline;fill:#ffffff"
d="M 234.069,466.88 C 63.977,384.073 43.61,240.378 41.255,161.786 136.604,137.994 199.322,92.536 234.069,60.228 c 34.747,32.308 97.458,77.766 192.807,101.558 -2.348,78.592 -22.721,222.287 -192.807,305.094 z"
id="path2" />
<path
style="display:inline;fill:#f0c57b"
d="M 410.284,169.867 C 408.471,240.817 391.15,373.583 234.069,449.45 205.019,435.435 180.763,419.461 160.487,402.259 133.076,379.086 112.974,353.691 98.194,327.974 64.848,269.81 58.874,209.949 57.848,169.868 c 88.156,-21.531 145.384,-63.78 176.221,-92.92 15.328,14.483 37.185,32.21 66.118,49.035 26.16,15.183 58.132,29.637 96.284,40.256 4.51,1.286 9.129,2.486 13.813,3.628 z"
id="path3" />
<g
id="g7"
style="display:inline"
inkscape:label="scudo_path_o">
<path
style="fill:#000080"
d="m 234.069,76.947 c -30.837,29.14 -88.066,71.389 -176.221,92.92 0.613,23.74 3.007,54.442 11.742,87.595 H 234.07 V 76.947 Z"
id="path4" />
<path
style="opacity:0.984837;fill:#f9f9f9"
d="M 396.472,166.238 C 358.32,155.62 326.348,141.165 300.188,125.982 271.254,109.157 249.398,91.43 234.07,76.947 v 180.515 h 164.506 c 8.748,-33.153 11.103,-63.841 11.709,-87.595 -4.685,-1.142 -9.304,-2.342 -13.813,-3.629 z"
id="path5" />
<path
style="opacity:1;fill:#ffffff"
d="m 69.589,257.462 c 6.012,22.824 15.011,46.8 28.604,70.512 14.78,25.718 34.882,51.113 62.293,74.285 20.276,17.202 44.532,33.176 73.582,47.191 V 257.462 Z"
id="path6" />
<path
style="fill:#000080"
d="M 234.069,449.449 C 338.559,398.981 381.202,323.341 398.575,257.461 H 234.069 Z"
id="path7" />
</g>
<path
style="opacity:0.0855691;fill:#000074;fill-opacity:1"
d="m 234.07,1.462 c 0,0 70.215,99.474 234.056,128.73 0,64.367 5.851,277.944 -234.056,383.27 z"
id="path8" />
</g><text
xml:space="preserve"
style="font-size:18.7733px;font-family:Azonix;-inkscape-font-specification:'Azonix, Normal';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;shape-subtract:url(#path11);display:inline;fill:#ffffff;stroke:#ffffff;stroke-width:0.170156;stroke-linecap:square;stroke-linejoin:round;stroke-dasharray:0.340315, 0.170156;paint-order:stroke fill markers"
id="text1"
y="366.35474"
x="131.43709"><tspan
sodipodi:role="line"
id="tspan1"
style="display:inline;fill:#ffffff;stroke-width:0.170157"
x="131.43709"
y="366.35474">BASTIONGUARD</tspan></text>
<metadata
id="metadata1"><rdf:RDF><cc:Work
rdf:about=""><dc:title>BastionGuard Logo</dc:title><dc:date>22 maggio 2025</dc:date><dc:creator><cc:Agent><dc:title>Calogero Scarna'</dc:title></cc:Agent></dc:creator></cc:Work></rdf:RDF></metadata><text
xml:space="preserve"
style="font-size:8.53333px;font-family:Azonix;-inkscape-font-specification:'Azonix, Normal';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#f9f9f9;stroke:#ffffff;stroke-width:0.170156;stroke-linecap:square;stroke-linejoin:round;stroke-dasharray:0.340316, 0.170156;paint-order:stroke fill markers"
x="286.36401"
y="352.85553"
id="text2"><tspan
sodipodi:role="line"
id="tspan2"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:8.53333px;font-family:sans-serif;-inkscape-font-specification:sans-serif;stroke-width:0.170156"
x="286.36401"
y="352.85553">TM</tspan></text></svg>

After

Width:  |  Height:  |  Size: 8.4 KiB

BIN
data/logo_api.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
data/logosito.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 KiB

44
data/pac/bastionguard.pac Normal file
View file

@ -0,0 +1,44 @@
// BastionGuard - Secure Payments PAC
// Generated from payments.json
function dnsDomainIs(host, domain) {
return host === domain || (host.length > domain.length && host.substring(host.length - domain.length - 1) === "." + domain);
}
function FindProxyForURL(url, host) {
host = host.toLowerCase();
// bypass locali
if (isPlainHostName(host) ||
shExpMatch(host, "localhost") ||
shExpMatch(host, "127.*") ||
shExpMatch(host, "10.*") ||
shExpMatch(host, "192.168.*") ||
shExpMatch(host, "172.16.*") || shExpMatch(host, "172.17.*") || shExpMatch(host, "172.18.*") ||
shExpMatch(host, "172.19.*") || shExpMatch(host, "172.2?.*") || shExpMatch(host, "172.3?.*")) {
return "DIRECT";
}
// domini pagamento (iniettati)
var pay = [
"paypal.com",
"stripe.com",
"adyen.com",
"klarna.com",
"checkout.com",
"worldpay.com",
"braintreepayments.com",
"braintreegateway.com",
"amazonpay.com",
"pay.google.com",
"pay.apple.com"
];
for (var i = 0; i < pay.length; i++) {
if (dnsDomainIs(host, pay[i])) {
return "PROXY 127.0.0.1:3129; DIRECT";
}
}
return "DIRECT";
}

View file

@ -0,0 +1,20 @@
{
"version": 1,
"updated_at": "2026-01-13",
"list": [
"paypal.com",
"stripe.com",
"adyen.com",
"klarna.com",
"checkout.com",
"worldpay.com",
"braintreepayments.com",
"braintreegateway.com",
"amazonpay.com",
"pay.google.com",
"pay.apple.com",
"sisalpay.it",
"nexi.it",
"payments.amazon.com"
]
}

View file

@ -0,0 +1,39 @@
#!/bin/bash
OUT="/run/BastionGuard.env"
rm -f "$OUT"
# Trova la sessione grafica attiva
SESSION=$(loginctl list-sessions --no-legend | awk '$3 ~ /tty|wayland|x11/ {print $1; exit}')
if [ -z "$SESSION" ]; then
exit 0
fi
USER=$(loginctl show-session "$SESSION" -p Name --value)
UID=$(id -u "$USER")
RUNTIME="/run/user/$UID"
# DISPLAY
DISPLAY=$(loginctl show-session "$SESSION" -p Display --value)
# Se non c'è DISPLAY, prova Wayland
if [ -z "$DISPLAY" ] && [ -e "$RUNTIME/wayland-0" ]; then
DISPLAY=""
WAYLAND_DISPLAY="wayland-0"
fi
# DBus session bus
BUS="unix:path=$RUNTIME/bus"
# Scrivi l'ambiente
{
echo "BastionGuard_USER=$USER"
echo "BastionGuard_UID=$UID"
echo "XDG_RUNTIME_DIR=$RUNTIME"
echo "DBUS_SESSION_BUS_ADDRESS=$BUS"
[ -n "$DISPLAY" ] && echo "DISPLAY=$DISPLAY"
[ -n "$WAYLAND_DISPLAY" ] && echo "WAYLAND_DISPLAY=$WAYLAND_DISPLAY"
} > "$OUT"
chmod 644 "$OUT"

View file

@ -0,0 +1,126 @@
#!/bin/sh
# BastionGuard – locale enablement
# Abilita/genera en_US.UTF-8 sul sistema SENZA impostarla come default.
set -eu
LOCALE_GEN="en_US.UTF-8"
LOCALE_A_NEEDLE_1="en_US.utf8"
LOCALE_A_NEEDLE_2="en_US.UTF-8"
echo "[BastionGuard] Richiesta abilitazione locale: ${LOCALE_GEN} (senza cambiarla di default)"
# Se gia' presente, esci
if locale -a 2>/dev/null | grep -qiE "^(${LOCALE_A_NEEDLE_1}|${LOCALE_A_NEEDLE_2})$"; then
echo "[BastionGuard] Locale ${LOCALE_GEN} gia' disponibile. Nessuna modifica necessaria."
exit 0
fi
# Rileva distro
ID=""
ID_LIKE=""
if [ -f /etc/os-release ]; then
# shellcheck disable=SC1091
. /etc/os-release
ID="${ID:-}"
ID_LIKE="${ID_LIKE:-}"
fi
is_debian_like() { echo "$ID $ID_LIKE" | grep -qiE "debian|ubuntu"; }
is_arch_like() { echo "$ID $ID_LIKE" | grep -qiE "arch"; }
is_rhel_like() { echo "$ID $ID_LIKE" | grep -qiE "fedora|rhel|centos|rocky|alma"; }
is_suse_like() { echo "$ID $ID_LIKE" | grep -qiE "suse|opensuse"; }
# Funzione: verifica che sia comparsa dopo le operazioni
verify_enabled() {
if locale -a 2>/dev/null | grep -qiE "^(${LOCALE_A_NEEDLE_1}|${LOCALE_A_NEEDLE_2})$"; then
echo "[BastionGuard] OK: locale ${LOCALE_GEN} ora disponibile."
return 0
fi
echo "[BastionGuard] ERRORE: locale ${LOCALE_GEN} non risulta disponibile dopo il setup."
return 1
}
# Debian/Ubuntu: usa /etc/locale.gen + locale-gen, ma NON update-locale
if is_debian_like; then
echo "[BastionGuard] Sistema Debian-like: abilito in /etc/locale.gen e genero"
if [ -f /etc/locale.gen ]; then
# decommenta o aggiungi
if grep -qE "^[# ]*en_US.UTF-8[[:space:]]+UTF-8" /etc/locale.gen; then
sed -i 's/^[# ]*\(en_US.UTF-8[[:space:]]\+UTF-8\)/\1/' /etc/locale.gen
else
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
fi
fi
if command -v locale-gen >/dev/null 2>&1; then
locale-gen en_US.UTF-8 >/dev/null
else
echo "[BastionGuard] ERRORE: locale-gen non trovato."
exit 2
fi
verify_enabled
exit $?
# Arch: /etc/locale.gen + locale-gen (NON scrivere /etc/locale.conf)
elif is_arch_like; then
echo "[BastionGuard] Sistema Arch-like: abilito in /etc/locale.gen e genero"
if [ -f /etc/locale.gen ]; then
if grep -qE "^[# ]*en_US.UTF-8[[:space:]]+UTF-8" /etc/locale.gen; then
sed -i 's/^[# ]*\(en_US.UTF-8[[:space:]]\+UTF-8\)/\1/' /etc/locale.gen
else
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
fi
fi
locale-gen >/dev/null
verify_enabled
exit $?
# Fedora/RHEL: NON usare localectl set-locale. Serve il langpack.
elif is_rhel_like; then
echo "[BastionGuard] Sistema RHEL/Fedora-like: installo langpack se necessario (senza cambiare default)"
if command -v dnf >/dev/null 2>&1; then
# glibc-langpack-en abilita en_US su molte varianti Fedora/RHEL
dnf -y install glibc-langpack-en >/dev/null
elif command -v yum >/dev/null 2>&1; then
yum -y install glibc-langpack-en >/dev/null
else
echo "[BastionGuard] ERRORE: dnf/yum non trovato."
exit 2
fi
verify_enabled
exit $?
# openSUSE: spesso basta glibc-locale / glibc-locale-base (varia). Proviamo pacchetto EN.
elif is_suse_like; then
echo "[BastionGuard] Sistema SUSE-like: installo pacchetti locale EN se necessari (senza cambiare default)"
if command -v zypper >/dev/null 2>&1; then
# nomi pacchetti possono variare; questi sono comuni
zypper -n install glibc-locale glibc-i18ndata >/dev/null || true
else
echo "[BastionGuard] ERRORE: zypper non trovato."
exit 2
fi
verify_enabled
exit $?
# Fallback: prova localedef senza cambiare default
else
echo "[BastionGuard] Distro non riconosciuta: provo localedef (senza cambiare default)"
if command -v localedef >/dev/null 2>&1; then
# prova a creare en_US.UTF-8 se i sorgenti sono presenti
localedef -i en_US -f UTF-8 en_US.UTF-8 >/dev/null 2>&1 || true
fi
verify_enabled
exit $?
fi

View file

@ -0,0 +1,303 @@
#!/usr/bin/env bash
# ============================================================
# BastionGuard Universal Setup Script
# - Configura loopback + DNS cross-distro
# - Aggiorna /etc/hosts (safe, non distruttivo)
# - Installa/abilita Nginx proxy per LocalWarningServer
#
# UPDATE (dnsmasq su 127.0.0.1:53 senza stravolgere nulla):
# - Se systemd-resolved è attivo:
# * Imposta DNS=127.0.0.1 (upstream verso dnsmasq)
# * Mantiene lo stub su 127.0.0.53:53 (NON lo disabilita)
# * Assicura che /etc/resolv.conf punti allo stub (127.0.0.53),
# così le app continuano ad usare resolved e resolved inoltra a dnsmasq.
# - Se NM/altro: fallback non distruttivo su resolv.conf append.
# ============================================================
set -euo pipefail
export XDG_RUNTIME_DIR="/run/user/0"
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/dbus/system_bus_socket"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
echo "🧠 [BastionGuard Setup] Avvio configurazione universale..."
DISTRO_ID=$(grep -E '^ID=' /etc/os-release | cut -d= -f2 | tr -d '"')
DISTRO_LIKE=$(grep -E '^ID_LIKE=' /etc/os-release | cut -d= -f2 | tr -d '"' || true)
detect_netmgr() {
if systemctl is-active --quiet NetworkManager 2>/dev/null; then
echo "NetworkManager"
elif systemctl is-active --quiet systemd-networkd 2>/dev/null; then
echo "systemd-networkd"
elif pgrep -x connmand >/dev/null 2>&1; then
echo "connman"
elif [ -d /etc/netplan ]; then
echo "netplan"
elif [ -f /etc/network/interfaces ]; then
echo "ifupdown"
else
echo "unknown"
fi
}
NETMGR=$(detect_netmgr)
echo "➡ Gestore rete rilevato: $NETMGR"
# ============================================================
# STEP 1: ensure loopback 127.0.0.1
# ============================================================
echo "🧱 [Step 1] Verifica loopback 127.0.0.1..."
if ! ip addr show dev lo | grep -q "127\.0\.0\.1"; then
ip addr add 127.0.0.1/8 dev lo || true
echo "✅ 127.0.0.1 aggiunto a loopback."
else
echo "ℹ️ 127.0.0.1 già presente."
fi
ip link set lo up
# ============================================================
# STEP 2: DNS 127.0.0.1 (cross-distro, non distruttivo)
# - Obiettivo: far sì che il sistema risolva tramite dnsmasq (127.0.0.1:53)
# - Con systemd-resolved: resolved -> dnsmasq; app -> stub 127.0.0.53
# ============================================================
echo "🌐 [Step 2] Configurazione DNS locale (safe, non distruttiva)..."
dns_report() {
echo "🔎 [DNS report]"
echo "- /etc/resolv.conf -> $(readlink -f /etc/resolv.conf 2>/dev/null || echo /etc/resolv.conf)"
echo "- nameserver attuali:"
grep -E '^\s*nameserver\s+' /etc/resolv.conf 2>/dev/null || echo " (nessuno trovato in /etc/resolv.conf)"
if command -v resolvectl >/dev/null 2>&1; then
echo "- resolvectl status (estratto):"
resolvectl status 2>/dev/null | sed -n '1,120p' || true
fi
echo "- systemd-resolved: $(systemctl is-active systemd-resolved 2>/dev/null || echo unknown)"
echo "- NetworkManager: $(systemctl is-active NetworkManager 2>/dev/null || echo unknown)"
echo "- connman: $(pgrep -x connmand >/dev/null 2>&1 && echo active || echo inactive)"
}
append_nameserver_resolvconf() {
local rc="/etc/resolv.conf"
[ -e "$rc" ] || touch "$rc"
if grep -Eq '^\s*nameserver\s+127\.0\.0\.1\s*$' "$rc"; then
echo "ℹ️ nameserver 127.0.0.1 già presente in $rc"
else
echo "nameserver 127.0.0.1" >> "$rc"
echo "✅ Aggiunto nameserver 127.0.0.1 in $rc"
fi
}
# systemd-resolved: imposta upstream DNS=127.0.0.1 senza disabilitare lo stub
ensure_resolved_dns() {
local conf="/etc/systemd/resolved.conf"
[ -f "$conf" ] || touch "$conf"
if ! grep -Eq '^\s*\[Resolve\]\s*$' "$conf"; then
echo -e "\n[Resolve]" >> "$conf"
fi
# aggiunge 127.0.0.1 alla riga DNS=, o la crea in [Resolve]
if grep -Eq '^\s*DNS=' "$conf"; then
if grep -Eq '^\s*DNS=.*\b127\.0\.0\.1\b' "$conf"; then
echo "ℹ️ systemd-resolved: DNS già include 127.0.0.1 in $conf"
else
sed -i -E '0,/^\s*DNS=/{s/^\s*DNS=(.*)$/DNS=\1 127.0.0.1/}' "$conf"
echo "✅ systemd-resolved: aggiunto 127.0.0.1 alla riga DNS= in $conf"
fi
else
sed -i -E '0,/^\s*\[Resolve\]\s*$/{s/^\s*\[Resolve\]\s*$/[Resolve]\nDNS=127.0.0.1/}' "$conf"
echo "✅ systemd-resolved: aggiunto DNS=127.0.0.1 in $conf"
fi
systemctl restart systemd-resolved || true
}
# Assicura che /etc/resolv.conf punti allo stub di systemd-resolved (127.0.0.53)
ensure_resolvconf_stub() {
local stub="/run/systemd/resolve/stub-resolv.conf"
if [ -f "$stub" ]; then
local cur
cur="$(readlink -f /etc/resolv.conf 2>/dev/null || echo /etc/resolv.conf)"
if [ "$cur" = "$stub" ]; then
echo "ℹ️ /etc/resolv.conf già punta a stub-resolv.conf"
return 0
fi
# se è symlink, la rimpiazzo. se è file normale, faccio backup e poi link.
if [ -L /etc/resolv.conf ]; then
ln -sf "$stub" /etc/resolv.conf
echo "✅ /etc/resolv.conf -> $stub (symlink aggiornato)"
else
cp -a /etc/resolv.conf "/etc/resolv.conf.bak.$(date +%Y%m%d%H%M%S)" || true
ln -sf "$stub" /etc/resolv.conf
echo "✅ /etc/resolv.conf -> $stub (backup creato, symlink impostato)"
fi
else
echo "⚠️ stub-resolv.conf non trovato ($stub). Lascio /etc/resolv.conf invariato."
fi
}
dns_report
if systemctl is-active --quiet systemd-resolved 2>/dev/null; then
echo "➡ systemd-resolved attivo: imposto upstream DNS=127.0.0.1 (dnsmasq) e mantengo stub 127.0.0.53."
ensure_resolved_dns
ensure_resolvconf_stub
elif systemctl is-active --quiet NetworkManager 2>/dev/null; then
echo "➡ NetworkManager attivo: imposto dns 127.0.0.1 senza toccare resolv.conf."
CONN=$(nmcli -t -f NAME,DEVICE connection show --active | head -n1 | cut -d: -f1 || true)
if [ -n "${CONN:-}" ]; then
CUR_DNS=$(nmcli -g ipv4.dns connection show "$CONN" 2>/dev/null | tr -d '\n' || true)
if echo "$CUR_DNS" | grep -qw "127.0.0.1"; then
echo "ℹ️ NM: 127.0.0.1 già presente per $CONN"
else
if [ -n "$CUR_DNS" ]; then
nmcli connection modify "$CONN" ipv4.dns "$CUR_DNS,127.0.0.1"
else
nmcli connection modify "$CONN" ipv4.dns "127.0.0.1"
fi
nmcli connection up "$CONN" || true
echo "✅ NM: aggiunto 127.0.0.1 ai DNS di $CONN"
fi
else
echo "⚠️ Nessuna connessione NM attiva trovata; fallback resolv.conf (append)."
append_nameserver_resolvconf
fi
elif pgrep -x connmand >/dev/null 2>&1; then
echo "➡ ConnMan attivo: fallback prudente su resolv.conf (append)."
append_nameserver_resolvconf
else
echo "➡ Nessun gestore DNS riconosciuto: fallback resolv.conf (append)."
append_nameserver_resolvconf
fi
echo "🔎 [DNS post-check]"
dns_report
# ============================================================
# STEP 2.5: /etc/hosts (non distruttivo)
# Richieste:
# - 127.0.0.2 localhost
# - 127.0.0.1 bastionguard.local
# - 127.0.0.2 warning.BastionGuard.local
# ============================================================
echo "🧾 [Step 2.5] Aggiornamento /etc/hosts (safe, non distruttivo)..."
ensure_hosts_entry() {
local ip="$1"
local name="$2"
local hosts="/etc/hosts"
[ -f "$hosts" ] || touch "$hosts"
# Se il nome è già presente (anche su IP diverso), non duplico
if grep -Eq "^[[:space:]]*[^#]*\b${name}\b" "$hosts"; then
echo "ℹ️ /etc/hosts: '${name}' già presente, salto."
return 0
fi
printf "%s\t%s\n" "$ip" "$name" >> "$hosts"
echo "✅ Aggiunto: ${ip} ${name}"
}
ensure_hosts_entry "127.0.0.2" "localhost"
ensure_hosts_entry "127.0.0.1" "bastionguard.local"
ensure_hosts_entry "127.0.0.2" "warning.BastionGuard.local"
echo "🔎 [hosts check]"
tail -n 25 /etc/hosts || true
# ============================================================
# STEP 3: Install or enable nginx
# ============================================================
echo "🧩 [Step 3] Configurazione NGINX..."
install_nginx() {
echo "🔍 Verifico Nginx..."
if command -v nginx >/dev/null 2>&1; then
echo "✅ Nginx già installato."
else
echo "⬇️ Installazione Nginx..."
if [[ "$DISTRO_ID" == "arch" || "$DISTRO_LIKE" == *"arch"* ]]; then
pacman -S --noconfirm nginx
elif [[ "$DISTRO_ID" == "fedora" || "$DISTRO_LIKE" == *"rhel"* ]]; then
dnf install -y nginx
elif [[ "$DISTRO_ID" == "debian" || "$DISTRO_LIKE" == *"debian"* || "$DISTRO_LIKE" == *"ubuntu"* ]]; then
apt update -y && apt install -y nginx
elif [[ "$DISTRO_ID" == "opensuse"* ]]; then
zypper install -y nginx
else
echo "⚠️ Distribuzione non riconosciuta, installa manualmente nginx."
fi
fi
}
install_nginx
if nginx -t; then
systemctl enable --now nginx
systemctl reload nginx
echo "✅ Nginx configurato e attivo."
else
echo "❌ Errore nella configurazione nginx."
nginx -t || true
fi
# ============================================================
# STEP 4: Report
# ============================================================
echo
echo "📋 [Report finale]"
echo "Gestore rete: $NETMGR"
echo "Distribuzione: $DISTRO_ID ($DISTRO_LIKE)"
echo
echo "🔹 Loopback:"
ip addr show dev lo | grep 127 || true
echo
echo "🔹 DNS attuale:"
grep -E '^\s*nameserver\s+' /etc/resolv.conf || echo "(nessuno trovato)"
echo
echo "🔹 /etc/hosts (estratto):"
tail -n 25 /etc/hosts || true
echo
echo "🔹 Nginx listener:"
ss -ltnp | grep -E "127\.0\.0\.2:80|127\.0\.0\.2:443" || echo "(nessun listener trovato)"
echo
echo "🔹 Proxy test rapido:"
curl -s -o /dev/null -w "%{http_code}\n" http://127.0.0.1/ || true
echo
echo "✅ Setup completo BastionGuard (rete + dns + hosts + nginx)"
# ============================================================
# STEP 5: Riavvio servizi
# ============================================================
echo "🔄 [Step 5] Riavvio dei servizi di rete e proxy..."
if systemctl is-active --quiet NetworkManager 2>/dev/null; then
echo "🔁 Riavvio NetworkManager..."
systemctl restart NetworkManager || true
elif systemctl is-active --quiet systemd-networkd 2>/dev/null; then
echo "🔁 Riavvio systemd-networkd..."
systemctl restart systemd-networkd || true
fi
if systemctl is-active --quiet systemd-resolved 2>/dev/null; then
echo "🔁 Riavvio systemd-resolved..."
systemctl restart systemd-resolved || true
fi
if systemctl is-active --quiet nginx 2>/dev/null; then
echo "🔁 Riavvio nginx..."
systemctl reload nginx || systemctl restart nginx || true
fi
echo "✅ Tutti i servizi rilevanti sono stati riavviati."
# ============================================================
# NOTE OPERATIVE
# - Questo script NON installa/configura dnsmasq: lo fa il wizard.
# - Per usare dnsmasq su 127.0.0.1:53 con systemd-resolved attivo:
# * le app -> 127.0.0.53 (stub)
# * resolved -> 127.0.0.1 (dnsmasq)
# - Se dnsmasq non è attivo/porta 53 occupata, la risoluzione può fallire.
# ============================================================

View file

@ -0,0 +1,19 @@
#!/bin/bash
set -e
LOG_DIR="/var/log/BastionGuard"
LOG_FILE="$LOG_DIR/phishing_updater.log"
DATE=$(date '+%Y-%m-%d %H:%M:%S')
mkdir -p "$LOG_DIR"
echo "[$DATE] Avvio aggiornamento blacklist..." >> "$LOG_FILE"
/usr/bin/BastionGuard --update-phish >> "$LOG_FILE" 2>&1
if systemctl is-active --quiet BastionGuard-phishing-scanner.service; then
echo "[$DATE] Servizio attivo, riavvio..." >> "$LOG_FILE"
systemctl restart BastionGuard-phishing-scanner.service
fi
echo "[$DATE] Aggiornamento completato" >> "$LOG_FILE"
exit 0

View file

@ -0,0 +1,191 @@
#!/usr/bin/env bash
set -euo pipefail
log(){ printf '[%s] %s\n' "$(date +'%F %T')" "$*"; }
need_root() {
if [[ "${EUID:-$(id -u)}" -ne 0 ]]; then
echo "Esegui come root (usa sudo)." >&2
exit 1
fi
}
detect_os() {
local id="unknown" like=""
if [[ -r /etc/os-release ]]; then
# shellcheck disable=SC1091
. /etc/os-release
id="${ID:-unknown}"
like="${ID_LIKE:-}"
fi
echo "$id" "$like"
}
is_arch_like() {
local id="$1" like="$2"
[[ "$id" == "arch" || "$id" == "manjaro" || "$id" == "endeavouros" ]] && return 0
[[ "$like" == *"arch"* ]] && return 0
return 1
}
is_fedora_like() {
local id="$1" like="$2"
[[ "$id" == "fedora" ]] && return 0
[[ "$like" == *"fedora"* || "$like" == *"rhel"* ]] && return 0
return 1
}
is_suse_like() {
local id="$1" like="$2"
[[ "$id" == opensuse* || "$id" == "suse" || "$id" == "sles" ]] && return 0
[[ "$like" == *"suse"* ]] && return 0
return 1
}
have_systemd() {
command -v systemctl >/dev/null 2>&1
}
# Robust: works for installed units, generated units, aliases
unit_exists() {
local u="$1"
systemctl cat "$u" >/dev/null 2>&1
}
unit_active() {
local u="$1"
systemctl is-active --quiet "$u" 2>/dev/null
}
disable_stop_if_present() {
local u="$1"
if unit_exists "$u" || systemctl list-units --type=service --all 2>/dev/null | awk '{print $1}' | grep -qx "$u"; then
log "Stop+disable (se presente): $u"
systemctl disable --now "$u" >/dev/null 2>&1 || true
fi
}
daemon_reload() {
systemctl daemon-reload >/dev/null 2>&1 || true
}
# ---- BRIDGE IMPLEMENTATIONS ----
# Fedora-like: wrapper unit che comanda clamd@scan
write_bridge_wrapper_fedora() {
local bridge="/etc/systemd/system/clamav-daemon.service"
local target="clamd@scan.service"
unit_exists "$target" || { echo "Fedora-like: manca $target" >&2; exit 1; }
log "Creo bridge wrapper: clamav-daemon.service -> $target (wrapper oneshot)"
cat > "$bridge" <<'EOF'
[Unit]
Description=ClamAV daemon bridge (wrapper to clamd@scan)
Wants=clamd@scan.service
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/systemctl start clamd@scan.service
ExecStop=/usr/bin/systemctl stop clamd@scan.service
ExecReload=/usr/bin/systemctl reload clamd@scan.service
[Install]
WantedBy=multi-user.target
EOF
}
# openSUSE-like: wrapper (robusto) verso clamd.service
write_bridge_wrapper_suse() {
local bridge="/etc/systemd/system/clamav-daemon.service"
local target="clamd.service"
unit_exists "$target" || { echo "openSUSE-like: manca $target" >&2; exit 1; }
log "Creo bridge wrapper: clamav-daemon.service -> $target (wrapper oneshot)"
cat > "$bridge" <<'EOF'
[Unit]
Description=ClamAV daemon bridge (wrapper to clamd)
Wants=clamd.service
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/systemctl start clamd.service
ExecStop=/usr/bin/systemctl stop clamd.service
ExecReload=/usr/bin/systemctl reload clamd.service
[Install]
WantedBy=multi-user.target
EOF
}
enable_start_common() {
local to_enable=("$@")
for u in "${to_enable[@]}"; do
if unit_exists "$u"; then
log "Enable+start: $u"
systemctl enable --now "$u" >/dev/null 2>&1 || true
systemctl restart "$u" >/dev/null 2>&1 || true
fi
done
}
show_status() {
local u="$1"
log "Stato servizio: $u"
systemctl --no-pager --full status "$u" || true
}
main() {
need_root
local id like
read -r id like < <(detect_os)
log "OS rilevato: ID=${id} ID_LIKE=${like}"
if is_arch_like "$id" "$like"; then
log "Arch-like: richiesto NO-OP. Esco senza modifiche."
exit 0
fi
if ! is_fedora_like "$id" "$like" && ! is_suse_like "$id" "$like"; then
log "Distro non target (né Fedora-like né SUSE-like): nessuna modifica."
exit 0
fi
have_systemd || { echo "systemd/systemctl non trovato: impossibile creare bridge" >&2; exit 1; }
# Ferma/disable eventuali definizioni precedenti del bridge e socket
disable_stop_if_present "clamav-daemon.socket"
disable_stop_if_present "clamav-daemon.service"
if is_fedora_like "$id" "$like"; then
write_bridge_wrapper_fedora
daemon_reload
# abilita target + bridge (bridge utile per comandi uniformi)
enable_start_common "clamd@scan.service" "clamav-daemon.service"
show_status "clamd@scan.service"
show_status "clamav-daemon.service"
exit 0
fi
if is_suse_like "$id" "$like"; then
write_bridge_wrapper_suse
daemon_reload
# abilita target + bridge (bridge utile per comandi uniformi)
enable_start_common "clamd.service" "clamav-daemon.service"
show_status "clamd.service"
show_status "clamav-daemon.service"
exit 0
fi
}
main "$@"

View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# camera-privacy-toggle — blocca o sblocca la webcam via udev/permessi
set -euo pipefail
cmd="${1:-}"
if [[ "$cmd" == "block" ]]; then
for d in /dev/video*; do
[ -e "$d" ] && chmod 000 "$d"
done
echo "Webcam bloccata"
elif [[ "$cmd" == "unblock" ]]; then
for d in /dev/video*; do
[ -e "$d" ] && chmod 660 "$d"
done
echo "Webcam sbloccata"
else
echo "Uso: $0 block|unblock" >&2
exit 2
fi

View file

@ -0,0 +1,39 @@
#!/usr/bin/env bash
# enable-user-agents.sh
# Abilita i servizi BastionGuard user-level per tutti gli utenti attivi
set -euo pipefail
SERVICES=(
"BastionGuard-useragent.service"
"BastionGuard-ransomware-alert.service"
"BastionGuard-ransomware-scanner.service"
)
echo "[BastionGuard] Abilitazione servizi user-level..."
# Ricarica le unit globali di sistema
systemctl daemon-reload || true
# Ciclo su tutte le sessioni attive
while read -r SID USERNAME; do
# ignora root o valori vuoti
if [[ -z "$SID" || -z "$USERNAME" || "$USERNAME" == "root" ]]; then
continue
fi
USER_ID=$(id -u "$USERNAME" 2>/dev/null || true)
if [[ -z "$USER_ID" ]]; then
continue
fi
echo "[BastionGuard] Sessione $SID utente $USERNAME (UID=$USER_ID)"
for svc in "${SERVICES[@]}"; do
echo "[BastionGuard] -> abilito $svc per $USERNAME"
runuser -l "$USERNAME" -c \
"systemctl --user daemon-reload; systemctl --user enable --now $svc" \
|| echo "[BastionGuard] ⚠ impossibile abilitare $svc per $USERNAME"
done
done < <(loginctl list-sessions --no-legend | awk '{print $1,$3}')
echo "[BastionGuard] Fine."

View file

@ -0,0 +1,21 @@
[Unit]
Description=BastionGuard CEF backend proxy (sandboxed, per-user)
After=graphical-session.target
Wants=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/bastionguard-cef --listen 127.0.0.1 --port 3130
Restart=on-failure
RestartSec=1
TimeoutStopSec=5s
KillSignal=SIGTERM
KillMode=control-group
NoNewPrivileges=false
PrivateTmp=true
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=default.target

View file

@ -0,0 +1,27 @@
[Unit]
Description=BastionGuard PAC daemon (per-user)
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/bastionguard-pacd \
--listen 127.0.0.1 --port 8765 \
--stub-host 127.0.0.1 --stub-port 3129 \
--backend-host 127.0.0.1 --backend-port 3130 \
--trigger-cmd "systemctl --user start BastionGuard-cef.service" \
--backend-wait-ms 4000
Restart=on-failure
RestartSec=1
TimeoutStopSec=5s
KillSignal=SIGTERM
KillMode=control-group
NoNewPrivileges=true
PrivateTmp=true
# Consigliato: limita rete a localhost (se vuoi hardening)
# IPAddressDeny=any
# IPAddressAllow=localhost
[Install]
WantedBy=default.target

View file

@ -0,0 +1,51 @@
[Unit]
Description=BastionGuard DNS Protection Daemon
After=network.target dnsmasq.service
Wants=dnsmasq.service
StartLimitBurst=5
StartLimitIntervalSec=30
[Service]
Type=simple
# Capability per bind su 81/444 (no root richiesto)
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
WorkingDirectory=/usr/share/BastionGuard
StandardOutput=journal
StandardError=journal
SyslogIdentifier=BastionGuard-daemon
# Avvio del daemon con LocalWarningServer
ExecStart=/usr/bin/BastionGuard-daemon \
--http-port=81 \
--https-port=444 \
--bind-address=127.0.0.2 \
--page-warning=/usr/share/BastionGuard/data/blocking/block.html
# Reload: ricarica dnsmasq in caso di aggiornamento blocklist
ExecReload=/usr/bin/systemctl reload dnsmasq.service
# Restart automatico su crash
Restart=on-failure
RestartSec=5s
TimeoutStopSec=5s
KillSignal=SIGTERM
KillMode=control-group
# Sicurezza e isolamento
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
RestrictRealtime=true
RestrictSUIDSGID=true
ProtectKernelModules=true
ProtectControlGroups=true
ProtectClock=true
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=Aggiornamento automatico blacklist anti-phishing di BastionGuard
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/share/BastionGuard/data/scripts/BastionGuard-phishing-updater.sh
User=root
Nice=10

View file

@ -0,0 +1,8 @@
[Unit]
Description=Esegue l’aggiornamento della blacklist ogni 2 ore
[Timer]
OnBootSec=10min
OnUnitActiveSec=2h
Unit=BastionGuard-phishing-updater.service
[Install]
WantedBy=timers.target

View file

@ -0,0 +1,21 @@
[Unit]
Description=BastionGuard Privacy Daemon
After=graphical-session.target
[Service]
ExecStart=/usr/bin/BastionGuard-privacyd
Restart=on-failure
RestartSec=3
# 🔧 Ambiente grafico corretto
Environment=DISPLAY=:0
Environment=XDG_RUNTIME_DIR=%t
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
Environment=WAYLAND_DISPLAY=wayland-0
# Per debug visibile nel journal
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=graphical-session.target

View file

@ -0,0 +1,19 @@
[Unit]
Description=BastionGuard Ransomware Alert (GUI)
After=graphical-session.target
Requires=graphical-session.target
[Service]
Type=exec
# Programma che mostra la finestra di alert
ExecStart=/usr/bin/BastionGuard-ransomware-alert "%i"
# Assicura che punti al bus grafico reale
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
# Sandbox leggera
NoNewPrivileges=yes
[Install]
WantedBy=default.target

View file

@ -0,0 +1,38 @@
[Unit]
Description=BastionGuard Realtime Ransomware Alert GUI
Documentation=https://github.com/BastionGuard
After=graphical-session.target
Wants=graphical-session.target
# Garantisce che il desktop environment sia attivo
After=xdg-desktop-portal.service
[Service]
Type=simple
ExecStart=/usr/bin/BastionGuard-ransomware-realtime-alert
# Garantisce che erediti le variabili DISPLAY, DBUS, WAYLAND
# dall'ambiente della sessione grafica
Environment=QT_QPA_PLATFORM=wayland;xcb
# Per tutti i desktop environment (libera e sicura)
Environment=GDK_BACKEND=wayland,x11
# Permettiamo GUI + socket localhost
NoNewPrivileges=no
# MIGLIORE COMPATIBILITÀ
# (non blocca /proc rootless → fondamentale per Wayland)
ProtectSystem=no
ProtectHome=no
PrivateTmp=no
PrivateDevices=no
ProtectKernelTunables=no
ProtectKernelModules=no
ProtectKernelLogs=no
Restart=on-failure
RestartSec=2
[Install]
WantedBy=default.target

View file

@ -0,0 +1,34 @@
[Unit]
Description=BastionGuard Anti-Ransomware Realtime (Inotify + YARA Safe Mode)
Documentation=https://calogeroscarna.it
# Il demone ha solo bisogno che la rete localhost sia su
After=network.target systemd-user-sessions.service
Requires=systemd-user-sessions.service
[Service]
Type=simple
ExecStart=/usr/bin/BastionGuard-ransomware-realtime
# Il demone DEVE girare come root
User=root
# Accesso ai file, inclusi /etc/BastionGuard/ransomware.token
CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_SYS_ADMIN
AmbientCapabilities=CAP_DAC_READ_SEARCH CAP_SYS_ADMIN
NoNewPrivileges=yes
# Uniche directory in scrittura richieste
ReadWritePaths=/var/log/BastionGuard
# Log nel journal
StandardOutput=journal
StandardError=journal
# Restart policy
Restart=on-failure
RestartSec=5s
TimeoutStopSec=2s
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,29 @@
[Unit]
Description=BastionGuard Anti-Ransomware Scanner Daemon
After=graphical-session.target
[Service]
Type=simple
# 🌈 ENV corretti per D-Bus + GTK
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
Environment=XDG_RUNTIME_DIR=/run/user/%U
ExecStart=/usr/bin/BastionGuard-ransomware-scanner \
--0day-protection /usr/share/BastionGuard/data/0day_ransomware_protection/ZeroDay.yara \
WorkingDirectory=%h/.local/share/BastionGuard
StandardOutput=journal
StandardError=journal
SyslogIdentifier=BastionGuard-antiransomware
Restart=on-failure
RestartSec=5s
TimeoutStopSec=2s
KillSignal=SIGKILL
KillMode=control-group
[Install]
WantedBy=default.target

View file

@ -0,0 +1,22 @@
[Unit]
Description=BastionGuard USB Monitor
After=network.target systemd-udevd.service
Wants=systemd-udevd.service
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/BastionGuard-usbd
Restart=on-failure
# FIX per DBus
ProtectSystem=off
ProtectHome=off
PrivateTmp=false
# Manteniamo sicurezza
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,14 @@
[Unit]
Description=BastionGuard user agent (mostra notifiche / DBus agent)
After=graphical-session.target
[Service]
Type=simple
# Questo eseguibile deve essere l'agent che mostra finestre/notifiche in sessione utente
ExecStart=/usr/bin/BastionGuard-ransomware-alert
Restart=on-failure
# Assicura che il processo abbia accesso all'ambiente dell'utente e al bus di sessione
Environment=XDG_RUNTIME_DIR=/run/user/%U
[Install]
WantedBy=default.target

View file

@ -0,0 +1,8 @@
[Unit]
Description=Aggiornamento firme SaneSecurity per BastionGuard
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/BastionGuard --update-sanesecurity
ExecStartPost=/bin/systemctl reload clamav-daemon.service

View file

@ -0,0 +1,10 @@
[Unit]
Description=Esegue SaneSecurity update ogni 2 ore
[Timer]
OnBootSec=5min
OnUnitActiveSec=2h
Unit=bastionguard-sanesecurity.service
[Install]
WantedBy=timers.target

View file

@ -0,0 +1,22 @@
[Unit]
Description=ClamAV On-Access Scanner
Documentation=man:clamonacc(8) man:clamd.conf(5) https://docs.clamav.net/
Wants=clamav-daemon.socket
After=clamav-daemon.socket clamav-daemon.service network.target
Requires=clamav-daemon.service
[Service]
Type=simple
User=root
TimeoutStartSec=30min
# niente loop sul file: la socket unit lo crea subito
ExecStartPre=
ExecStart=/usr/sbin/clamonacc -F --fdpass --log=/var/log/clamav/clamonacc.log --move=/root/quarantine
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.BastionGuard.Ransomware.Alert
Exec=/usr/bin/BastionGuard-ransomware-alert

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,7 @@
VoidLink.Implant.Hash-1:0:*:05eac3663d47a29da0d32f67e10d161f831138e10958dcd88b9dc97038948f69
VoidLink.Implant.Hash-2:0:*:15cb93d38b0a4bd931434a501d8308739326ce482da5158eb657b0af0fa7ba49
VoidLink.Implant.Hash-3:0:*:6850788b9c76042e0e29a318f65fceb574083ed3ec39a34bc64a1292f4586b41
VoidLink.Implant.Hash-4:0:*:6dcfe9f66d3aef1efd7007c588a59f69e5cd61b7a8eca1fb89a84b8ccef13a2b
VoidLink.Implant.Hash-5:0:*:28c4a4df27f7ce8ced69476cc7923cf56625928a7b4530bc7b484eec67fe3943
VoidLink.Implant.Hash-6:0:*:e990a39e479e0750d2320735444b6c86cc26822d86a40d37d6e163d0fe058896
VoidLink.Implant.Hash-7:0:*:4c4201cc1278da615bacf48deef461bf26c343f8cbb2d8596788b41829a39f3f

View file

@ -0,0 +1,23 @@
# -------------------------------------------------------------
# BastionGuard USB – regole udev per dispositivi di storage USB
# -------------------------------------------------------------
# 1) Permessi per i block device USB → gruppo plugdev
SUBSYSTEM=="block", ENV{ID_BUS}=="usb", MODE="0660", GROUP="plugdev"
# 2) Solo dispositivi realmente removibili / con memoria
# (evita controller USB senza storage)
SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_DRIVE_ROTATIONAL}=="1", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_DRIVE_FLASH_SD}=="1", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_DRIVE_FLASH_USB}=="1", MODE="0660", GROUP="plugdev"
# 3) Etichetta più pulita nei log di systemd-udevd
ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", SYMLINK+="usb-storage-%k"
# 4) Avvia il demone BastionGuard-usbd quando viene collegata/rimossa una USB
# (questo è quello che ti mancava)
ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", ENV{ID_FS_USAGE}=="filesystem", \
ENV{SYSTEMD_WANTS}="BastionGuard-usbd.service"
ACTION=="remove", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", \
ENV{SYSTEMD_WANTS}="BastionGuard-usbd.service"

2
data/version.bs Normal file
View file

@ -0,0 +1,2 @@
version=1.0
build=20260116

View file

@ -0,0 +1,84 @@
# ==========================================================
# BastionGuard Local Warning Server (Nginx Reverse Proxy)
# ==========================================================
server {
listen 127.0.0.2:80 default_server;
server_name warning.BastionGuard.local;
# --- Proxy HTTP verso server locale (porta 81) ---
location / {
proxy_pass http://127.0.0.2:81/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fallback se il backend non risponde
error_page 502 503 504 /block.html;
}
# --- Directory fallback per la pagina di blocco ---
location = /block.html {
root /usr/share/BastionGuard/data/blocking;
default_type text/html;
}
# --- Headers di sicurezza ---
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;
# --- Logging ---
access_log /var/log/BastionGuard/BastionGuard_http_access.log;
error_log /var/log/BastionGuard/BastionGuard_http_error.log warn;
}
# ==========================================================
# BastionGuard Local Warning Server (Nginx HTTPS Reverse Proxy)
# ==========================================================
server {
listen 127.0.0.2:443 ssl default_server;
server_name warning.BastionGuard.local;
# --- SSL configuration ---
ssl_certificate /etc/BastionGuard/certs/local-warning.crt.pem;
ssl_certificate_key /etc/BastionGuard/certs/local-warning.key.pem;
# 🔧 Certificati self-signed locali
ssl_verify_client off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
# --- Proxy HTTPS verso server locale BastionGuard (porta 444) ---
location / {
proxy_pass https://127.0.0.2:444/;
proxy_ssl_verify off;
proxy_ssl_server_name on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
error_page 502 503 504 /block.html;
}
# --- Directory fallback ---
location = /block.html {
root /usr/share/BastionGuard/data/blocking;
default_type text/html;
}
# --- Headers di sicurezza ---
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;
# --- Logging ---
access_log /var/log/BastionGuard/BastionGuard_https_access.log;
error_log /var/log/BastionGuard/BastionGuard_https_error.log warn;
}

View file

@ -0,0 +1,92 @@
server {
listen 80;
listen [::]:80;
server_name _;
root /srv/http;
index index.php index.html index.htm;
# Se non hai questi file, evita di loggare errori inutili
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { log_not_found off; access_log off; }
# Fix header grandi (wp-admin / cookie / plugin)
fastcgi_buffer_size 64k;
fastcgi_buffers 16 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
# Cache asset statici
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff2?)$ {
expires 30d;
access_log off;
log_not_found off;
try_files $uri =404;
}
# Proteggi dotfiles (lascia .well-known)
location ~ /\.(?!well-known) {
deny all;
access_log off;
log_not_found off;
}
# ----------------------------------------------------------
# WordPress in /wordpress
# FIX: forza lo slash finale
# ----------------------------------------------------------
location = /wordpress {
return 301 /wordpress/;
}
location /wordpress/ {
# WordPress standard in sottocartella:
index index.php;
# evita che /wordpress/index.php venga trattato “strano” e stabilizza i permalink
try_files $uri $uri/ /wordpress/index.php?$query_string;
}
# opzionale ma spesso utile: nega accesso a file sensibili WP
location ~* ^/wordpress/(?:wp-config\.php|readme\.html|license\.txt) { deny all; }
location ~* ^/wordpress/(?:xmlrpc\.php) { deny all; } # solo se non lo usi
# ----------------------------------------------------------
# Joomla (o altro) in /joomla
# FIX: front controller coerente con la cartella
# ----------------------------------------------------------
location = /joomla {
return 301 /joomla/;
}
location ^~ /joomla/ {
index index.php;
try_files $uri $uri/ /joomla/index.php?$query_string;
}
# ----------------------------------------------------------
# Root (catch-all)
# Se NON usi nulla in /, puoi anche redirigere a wordpress
# ----------------------------------------------------------
location / {
try_files $uri $uri/ /index.php?$args;
}
# ----------------------------------------------------------
# PHP handler: esegue SOLO file PHP esistenti
# (questa riga evita "download" di PHP)
# ----------------------------------------------------------
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $document_root;
}
}

View file

@ -0,0 +1,100 @@
server {
listen 80;
listen [::]:80;
server_name _;
root /srv/http;
index index.php index.html index.htm;
# Se non hai questi file, evita di loggare errori inutili
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { log_not_found off; access_log off; }
# Fix header grandi (wp-admin / cookie / plugin)
fastcgi_buffer_size 64k;
fastcgi_buffers 16 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 128k;
# Cache asset statici
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff2?)$ {
expires 30d;
access_log off;
log_not_found off;
try_files $uri =404;
}
# Proteggi dotfiles (lascia .well-known)
location ~ /\.(?!well-known) {
deny all;
access_log off;
log_not_found off;
}
# ----------------------------------------------------------
# WordPress in /wordpress
# FIX: forza lo slash finale
# ----------------------------------------------------------
location = /wordpress {
return 301 /wordpress/;
}
location /wordpress/ {
# WordPress standard in sottocartella:
index index.php;
# evita che /wordpress/index.php venga trattato “strano” e stabilizza i permalink
try_files $uri $uri/ /wordpress/index.php?$query_string;
}
# opzionale ma spesso utile: nega accesso a file sensibili WP
location ~* ^/wordpress/(?:wp-config\.php|readme\.html|license\.txt) { deny all; }
location ~* ^/wordpress/(?:xmlrpc\.php) { deny all; } # solo se non lo usi
# ----------------------------------------------------------
# Joomla (o altro) in /joomla
# FIX: front controller coerente con la cartella
# ----------------------------------------------------------
location = /joomla {
return 301 /joomla/;
}
location ^~ /joomla/ {
index index.php;
try_files $uri $uri/ /joomla/index.php?$query_string;
}
# ----------------------------------------------------------
# Root (catch-all)
# Se NON usi nulla in /, puoi anche redirigere a wordpress
# ----------------------------------------------------------
location / {
try_files $uri $uri/ /index.php?$args;
}
# ----------------------------------------------------------
# PHP handler: esegue SOLO file PHP esistenti
# (questa riga evita "download" di PHP)
# ----------------------------------------------------------
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_index index.php;
# --- Sockets comuni: attiva solo quello corretto per la tua distro ---
# Debian / Ubuntu (es. PHP 8.4)
fastcgi_pass unix:/var/run/php/php8.4-fpm.sock;
# Fedora / openSUSE / Arch (default)
# fastcgi_pass unix:/run/php/php-fpm.sock;
# Slackware / Arch vecchio path
#fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $document_root;
}
}

84
data/vhosts/nginx.conf Normal file
View file

@ -0,0 +1,84 @@
# ==========================================================
# BastionGuard Local Warning Server (Nginx Reverse Proxy)
# ==========================================================
server {
listen 127.0.0.2:80 default_server;
server_name warning.BastionGuard.local;
# --- Proxy HTTP verso server locale (porta 81) ---
location / {
proxy_pass http://127.0.0.2:81/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fallback se il backend non risponde
error_page 502 503 504 /block.html;
}
# --- Directory fallback per la pagina di blocco ---
location = /block.html {
root /usr/share/BastionGuard/data/blocking;
default_type text/html;
}
# --- Headers di sicurezza ---
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;
# --- Logging ---
access_log /var/log/BastionGuard/BastionGuard_http_access.log;
error_log /var/log/BastionGuard/BastionGuard_http_error.log warn;
}
# ==========================================================
# BastionGuard Local Warning Server (Nginx HTTPS Reverse Proxy)
# ==========================================================
server {
listen 127.0.0.2:443 ssl default_server;
server_name warning.BastionGuard.local;
# --- SSL configuration ---
ssl_certificate /etc/BastionGuard/certs/local-warning.crt.pem;
ssl_certificate_key /etc/BastionGuard/certs/local-warning.key.pem;
# 🔧 Certificati self-signed locali
ssl_verify_client off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
# --- Proxy HTTPS verso server locale BastionGuard (porta 444) ---
location / {
proxy_pass https://127.0.0.2:444/;
proxy_ssl_verify off;
proxy_ssl_server_name on;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
error_page 502 503 504 /block.html;
}
# --- Directory fallback ---
location = /block.html {
root /usr/share/BastionGuard/data/blocking;
default_type text/html;
}
# --- Headers di sicurezza ---
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;
# --- Logging ---
access_log /var/log/BastionGuard/BastionGuard_https_access.log;
error_log /var/log/BastionGuard/BastionGuard_https_error.log warn;
}

41
data/yara/Archivi.yar Normal file
View file

@ -0,0 +1,41 @@
rule LINUX_POSSIBLE_RAINBOW_TABLE_ARCHIVE
{
meta:
author = "defensive"
description = "Linux: archive/container likely related to rainbow tables (heuristic)"
severity = "medium"
strings:
// keywords
$kw1 = "rainbow table" nocase ascii
$kw2 = "rainbowtable" nocase ascii
$kw3 = "precomputed" nocase ascii
$kw4 = "chain length" nocase ascii
$kw5 = "chain count" nocase ascii
$kw6 = "reduction" nocase ascii
$kw7 = "rtgen" nocase ascii
$kw8 = "rcrack" nocase ascii
$kw9 = "ophcrack" nocase ascii
// algorithms
$h1 = "LM" ascii
$h2 = "NTLM" ascii
$h3 = "MD5" ascii
$h4 = "SHA1" ascii
$h5 = "SHA-1" ascii
$h6 = "SHA256" ascii
$h7 = "SHA-256" ascii
// magic bytes for common containers
$zip = { 50 4B 03 04 }
$rar = { 52 61 72 21 1A 07 }
$7z = { 37 7A BC AF 27 1C }
// tar spesso non ha magic affidabile: si intercetta meglio via pipeline (tar -tf) e scan contenuti
condition:
(any of ($zip,$rar,$7z)) and
(2 of ($kw*)) and
(1 of ($h*)) and
filesize > 1MB
}

View file

@ -0,0 +1,17 @@
rule BastionGuard_TestRule
{
meta:
description = "Regola di test per BastionGuard Anti-Ransomware"
severity = 42
author = "Calogero"
version = "1.0"
date = "2025-01-01"
test = true
strings:
$test_string = "BastionGuard_TEST_SIGNATURE_1234"
condition:
$test_string
}

View file

@ -0,0 +1,27 @@
rule LINUX_Cookie_Staging_And_Packaging_High
{
meta:
description = "Linux: staging cookie in temp/cache + packaging (zip/tar/gzip)"
severity = "high"
score = 85
response = "quarantine_or_confirm"
strings:
$st1 = "/tmp/" ascii
$st2 = "/var/tmp/" ascii
$st3 = "/.cache/" ascii
$st4 = "/.local/share/" ascii
$cookie1 = "cookies.sqlite" ascii
$cookie2 = "/Default/Cookies" ascii
$cookie3 = "Login Data" ascii
$pack1 = "zip" ascii
$pack2 = "tar" ascii
$pack3 = "gzip" ascii
$pack4 = "7z" ascii
condition:
(1 of ($st*)) and (1 of ($cookie*)) and (1 of ($pack*))
}

View file

@ -0,0 +1,19 @@
rule LINUX_Browser_Cookie_Theft_Chromium_Paths
{
meta:
description = "Linux: riferimenti a path cookie Chromium-based (Chrome/Chromium/Brave/Edge)"
severity = "high"
strings:
$p1 = "/.config/google-chrome/Default/Cookies" ascii
$p2 = "/.config/chromium/Default/Cookies" ascii
$p3 = "/.config/BraveSoftware/Brave-Browser/Default/Cookies" ascii
$p4 = "/.config/microsoft-edge/Default/Cookies" ascii
$p5 = "/Default/Cookies" ascii
$p6 = "/Profile 1/Cookies" ascii
$p7 = "/Profile 2/Cookies" ascii
condition:
any of them
}

View file

@ -0,0 +1,14 @@
rule LINUX_Browser_Cookie_Theft_Firefox_Paths
{
meta:
description = "Linux: riferimenti a Firefox cookies.sqlite e profili"
severity = "high"
strings:
$f1 = "/.mozilla/firefox/" ascii
$f2 = "cookies.sqlite" ascii
$f3 = "profiles.ini" ascii
condition:
$f1 and ($f2 or $f3)
}

View file

@ -0,0 +1,24 @@
rule LINUX_Browser_DataCollector_Medium
{
meta:
description = "Linux: collezione dati browser (cookies/login/history) - generico"
severity = "medium"
score = 55
response = "alert"
strings:
$a1 = "Cookies" ascii
$a2 = "cookies.sqlite" ascii
$a3 = "Login Data" ascii
$a4 = "History" ascii
$a5 = "Web Data" ascii
$a6 = "Local State" ascii
$b1 = "/.config/google-chrome/" ascii
$b2 = "/.config/chromium/" ascii
$b3 = "/.mozilla/firefox/" ascii
condition:
3 of ($a*) and 1 of ($b*)
}

View file

@ -0,0 +1,38 @@
rule LINUX_CookieCloner_Critical_Composite
{
meta:
description = "Linux: alto rischio cookie cloning (browser artefacts + keyring/libsecret + esfil)"
severity = "critical"
score = 95
response = "quarantine"
strings:
// Browser artefacts
$c1 = "/Default/Cookies" ascii
$c2 = "cookies.sqlite" ascii
$c3 = "Login Data" ascii
$c4 = "Local State" ascii
$c5 = "encrypted_value" ascii
$c6 = "host_key" ascii
$c7 = "moz_cookies" ascii
// Decryption / key storage on Linux
$k1 = "libsecret" ascii
$k2 = "gnome-keyring" ascii
$k3 = "secret_password_lookup" ascii
$k4 = "Chromium Safe Storage" ascii
$k5 = "os_crypt" ascii
$k6 = "encrypted_key" ascii
// Network / exfil
$n1 = "libcurl" ascii
$n2 = "curl_easy_setopt" ascii
$n3 = "multipart/form-data" ascii
$n4 = "application/octet-stream" ascii
$n5 = "POST" ascii
$n6 = "User-Agent:" ascii
condition:
(2 of ($c*)) and (1 of ($k*)) and (2 of ($n*))
}

View file

@ -0,0 +1,34 @@
rule LINUX_CookieCloner_High_SQLite
{
meta:
description = "Linux: lettura cookie via SQLite (artefatti browser + api sqlite)"
severity = "high"
score = 80
response = "quarantine_or_confirm"
strings:
// Browser paths (Linux)
$p1 = "/.config/google-chrome/" ascii
$p2 = "/.config/chromium/" ascii
$p3 = "/.config/BraveSoftware/" ascii
$p4 = "/.config/microsoft-edge/" ascii
$p5 = "/.mozilla/firefox/" ascii
$p6 = "/Default/Cookies" ascii
$p7 = "cookies.sqlite" ascii
// SQLite API
$s1 = "sqlite3_open" ascii
$s2 = "sqlite3_prepare" ascii
$s3 = "sqlite3_step" ascii
$s4 = "sqlite3_finalize" ascii
// Typical fields / tables
$t1 = "FROM cookies" ascii
$t2 = "FROM moz_cookies" ascii
$t3 = "encrypted_value" ascii
$t4 = "host_key" ascii
condition:
(2 of ($p*)) and (2 of ($s*)) and (1 of ($t*))
}

View file

@ -0,0 +1,16 @@
rule Linux_Ransomware_Behavior_Minimal
{
meta:
description = "Ransomware behavior: cifratura iterativa minimi FP"
author = "BastionGuard"
strings:
$loop1 = { E8 ?? ?? ?? ?? 48 8B 55 ?? 48 8B 4D ?? 48 8B 45 ?? } // crypto loop
$aes1 = { 66 0F 38 DB } // AES-NI encrypt
$rsa1 = { 30 82 ?? ?? 02 01 00 } // header RSA embedded
condition:
uint32(0) == 0x7f454c46 and
any of ($loop1, $aes1, $rsa1)
}

View file

@ -0,0 +1,18 @@
rule Linux_Ransomware_Core
{
meta:
description = "Ransomware ELF noti - regola stabile"
author = "BastionGuard"
confidence = "high"
strings:
$s1 = { 48 8D 3D ?? ?? ?? ?? E8 ?? ?? ?? ?? 48 89 C3 } // pattern comune in più famiglie
$s2 = { 55 48 89 E5 48 83 EC 20 48 89 7D F8 31 C0 } // prologue usato in crypto-ransomware
$note = "Your files have been encrypted" wide ascii
condition:
uint32(0) == 0x7f454c46 and // SOLO ELF
filesize < 20MB and // evita FP su binari enormi
any of ($s*) or $note
}

View file

@ -0,0 +1,16 @@
rule Linux_Ransomware_Extensions_Strict
{
meta:
description = "Estensioni ransomware embedded, solo per ELF"
author = "BastionGuard"
strings:
$e1 = ".locked" ascii
$e2 = ".crypt" ascii
$e3 = ".enc" ascii
condition:
uint32(0) == 0x7f454c46 and
any of ($e*)
}

View file

@ -0,0 +1,16 @@
rule Linux_Ransomware_Note_Strict
{
meta:
description = "Ransom note embedded. Zero FP su file non ELF."
author = "BastionGuard"
strings:
$msg1 = "All your files have been encrypted" wide ascii
$msg2 = "To recover your files" wide ascii
$msg3 = "bitcoin" ascii
condition:
uint32(0) == 0x7f454c46 and // NON MATCHA MAI .zsh_history
any of ($msg*)
}

Some files were not shown because too many files have changed in this diff Show more