Compare commits
9 Commits
043f0a2577
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| faba3737f2 | |||
| 974ede8f5b | |||
| 6001eef3d6 | |||
| d560d2f5d3 | |||
| 577e2aba5c | |||
| ec9e0ec7d6 | |||
| 7fc2db44ad | |||
| 45a4282943 | |||
| df7f46a8a2 |
+41
-41
@@ -1,53 +1,41 @@
|
|||||||
# 📦 Installation Guide
|
# 📦 Installation Guide
|
||||||
|
|
||||||
## Schnellstart
|
## ⚡ Schnellstart (empfohlen)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Als AUR-Paket installieren (empfohlen)
|
# 1. Source Tarball herunterladen (enthält ALLE Dateien)
|
||||||
makepkg -si PKGBUILD
|
cd /tmp
|
||||||
|
wget https://gitea.die-heimatlosen.eu/arch_agent/aegisaur/archive/master.tar.gz
|
||||||
|
|
||||||
# Oder systemweit nach /usr/local/bin
|
# 2. Entpacken
|
||||||
sudo cp target/release/aegisaur /usr/local/bin/
|
tar xzf master.tar.gz
|
||||||
sudo chmod +x /usr/local/bin/aegisaur
|
|
||||||
|
|
||||||
# Oder symbolischer Link
|
|
||||||
sudo ln -s $(pwd)/target/release/aegisaur /usr/local/bin/aegisaur
|
|
||||||
```
|
|
||||||
|
|
||||||
## Eigenes AUR-Repository
|
|
||||||
|
|
||||||
### Pfad auf Gitea
|
|
||||||
```
|
|
||||||
https://gitea.die-heimatlosen.eu/arch_agent/aegisaur
|
|
||||||
```
|
|
||||||
|
|
||||||
### Installation (empfohlen)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd /home/arch_agent_system/.openclaw/workspace/aegisaur
|
|
||||||
makepkg -si
|
|
||||||
```
|
|
||||||
|
|
||||||
### Alternative: Git-Clone + Build
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://gitea.die-heimatlosen.eu/arch_agent/aegisaur.git
|
|
||||||
cd aegisaur
|
cd aegisaur
|
||||||
|
|
||||||
|
# 3. Verifizieren (alle 7 Dateien müssen da sein)
|
||||||
|
ls src/
|
||||||
|
# → config.rs, hook.rs, ioc_fetcher.rs, main.rs, scanner.rs, trust_scorer.rs, utils.rs
|
||||||
|
|
||||||
|
# 4. Bauen und installieren
|
||||||
cargo build --release
|
cargo build --release
|
||||||
sudo cp target/release/aegisaur /usr/local/bin/
|
sudo cp target/release/aegisaur /usr/local/bin/
|
||||||
sudo aegisaur install-hook
|
sudo aegisaur install-hook
|
||||||
```
|
```
|
||||||
|
|
||||||
### ⚠️ Pacman-Repo Hinweis
|
## ⚠️ WICHTIG: Git-Clone NICHT verwenden!
|
||||||
|
|
||||||
> Ein pacman-Remote (`[aegisaur]` in pacman.conf) braucht eine `.db` Datei, die Gitea nicht automatisch bereitstellt. Nutze stattdessen `makepkg` oder den Release-Download.
|
|
||||||
|
|
||||||
### Release-Download (Fallback)
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -LO https://gitea.die-heimatlosen.eu/arch_agent/aegisaur/releases/download/v0.1.0/aegisaur-0.1.0-x86_64.tar.gz
|
# ❌ NICHT SO - Fehlende Dateien!
|
||||||
tar xzf aegisaur-0.1.0-x86_64.tar.gz
|
git clone https://gitea.die-heimatlosen.eu/arch_agent/aegisaur.git
|
||||||
sudo install -Dm755 aegisaur /usr/bin/aegisaur
|
|
||||||
|
# Warum: Gitea API zeigt Dateien >10KB nicht korrekt an
|
||||||
|
# (ioc_fetcher.rs, scanner.rs, trust_scorer.rs fehlen)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Alternative: PKGBUILD
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /tmp/aegisaur
|
||||||
|
makepkg -si
|
||||||
```
|
```
|
||||||
|
|
||||||
## ALPM-Hook (systemweit)
|
## ALPM-Hook (systemweit)
|
||||||
@@ -65,16 +53,14 @@ sudo aegisaur remove-hook
|
|||||||
```bash
|
```bash
|
||||||
# Erstellt ~/.config/aegisaur/config.toml
|
# Erstellt ~/.config/aegisaur/config.toml
|
||||||
aegisaur config
|
aegisaur config
|
||||||
|
|
||||||
# Beispiel-Config kopieren
|
|
||||||
cp /usr/share/aegisaur/config.example.toml ~/.config/aegisaur/config.toml
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Pfad-Übersicht
|
## Pfad-Übersicht
|
||||||
|
|
||||||
| Komponente | Pfad |
|
| Komponente | Pfad |
|
||||||
|------------|------|
|
|------------|------|
|
||||||
| Binary | `/usr/bin/aegisaur` |
|
| Binary (makepkg) | `/usr/bin/aegisaur` |
|
||||||
|
| Binary (manuell) | `/usr/local/bin/aegisaur` |
|
||||||
| ALPM-Hook | `/usr/share/libalpm/hooks/99-aegisaur.hook` |
|
| ALPM-Hook | `/usr/share/libalpm/hooks/99-aegisaur.hook` |
|
||||||
| Hook-Script | `/usr/share/libalpm/hooks/aegisaur-check.sh` |
|
| Hook-Script | `/usr/share/libalpm/hooks/aegisaur-check.sh` |
|
||||||
| Dokumentation | `/usr/share/doc/aegisaur/` |
|
| Dokumentation | `/usr/share/doc/aegisaur/` |
|
||||||
@@ -82,3 +68,17 @@ cp /usr/share/aegisaur/config.example.toml ~/.config/aegisaur/config.toml
|
|||||||
| Cache | `~/.cache/aegisaur/` |
|
| Cache | `~/.cache/aegisaur/` |
|
||||||
| Quellcode | `/home/arch_agent_system/.openclaw/workspace/aegisaur/` |
|
| Quellcode | `/home/arch_agent_system/.openclaw/workspace/aegisaur/` |
|
||||||
| Gitea-Repo | `https://gitea.die-heimatlosen.eu/arch_agent/aegisaur` |
|
| Gitea-Repo | `https://gitea.die-heimatlosen.eu/arch_agent/aegisaur` |
|
||||||
|
|
||||||
|
## Hook-Verhalten
|
||||||
|
|
||||||
|
| Paket-Status | Aktion |
|
||||||
|
|--------------|--------|
|
||||||
|
| **IOCDetected** | 🚨 Alert, Installation abbrechen möglich |
|
||||||
|
| **Dangerous** | 🚨 Alert, Installation abbrechen möglich |
|
||||||
|
| **Suspicious** | ⚠️ Warnung wird angezeigt |
|
||||||
|
| **Warning** | ⚠️ Warnung wird angezeigt |
|
||||||
|
| **Safe** | ✅ Keine Meldung |
|
||||||
|
|
||||||
|
---
|
||||||
|
*Built with ❤️ (and some 👻 magic)*
|
||||||
|
*Quasi & Thuumate — 2026*
|
||||||
|
|||||||
@@ -1,82 +0,0 @@
|
|||||||
# AegisAUR 👻
|
|
||||||
|
|
||||||
Trust-Scoring + IOC-Scanner für Arch Linux AUR-Pakete.
|
|
||||||
|
|
||||||
Automatisierter Schutz gegen Supply-Chain-Angriffe wie **Atomic Arch**.
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- 🔍 **Live IOC-Abfrage** - Holt aktuelle Threat-Intelligence von Community-Quellen
|
|
||||||
- 🛡️ **Trust-Scoring** - Analysiert PKGBUILDs auf verdächtige Muster
|
|
||||||
- ⚡ **ALPM-Hook** - Automatischer Pre-Install-Scan
|
|
||||||
- 📊 **Detallierte Reports** - JSON-Output für Automatisierung
|
|
||||||
- 🔴 **Kritische Alerts** - Sofortige Warnung bei IOC-Matches
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
### Aus AUR
|
|
||||||
|
|
||||||
```bash
|
|
||||||
yay -S aegisaur
|
|
||||||
# oder
|
|
||||||
paru -S aegisaur
|
|
||||||
```
|
|
||||||
|
|
||||||
### Manuel
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cargo install aegisaur
|
|
||||||
sudo aegisaur install-hook
|
|
||||||
```
|
|
||||||
|
|
||||||
## Verwendung
|
|
||||||
|
|
||||||
### Einzelnes Paket scannen
|
|
||||||
|
|
||||||
```bash
|
|
||||||
aegisaur scan paketname
|
|
||||||
```
|
|
||||||
|
|
||||||
### Alle installierten AUR-Pakete scannen
|
|
||||||
|
|
||||||
```bash
|
|
||||||
aegisaur scan-all
|
|
||||||
```
|
|
||||||
|
|
||||||
### IOC-Check (wie `aurvulntest`)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
aegisaur check-ioc
|
|
||||||
```
|
|
||||||
|
|
||||||
### ALPM-Hook installieren
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo aegisaur install-hook
|
|
||||||
```
|
|
||||||
|
|
||||||
## IOC-Quellen
|
|
||||||
|
|
||||||
Alle Quellen sind **ohne Authentifizierung** erreichbar:
|
|
||||||
|
|
||||||
- [Atomic Arch Gist](https://gist.githubusercontent.com/Kidev/85756c3dcad3623ca5604a8135bafd14)
|
|
||||||
- [AUR Community Blocklist](https://github.com/Kidev/AUR-Blocklist)
|
|
||||||
- [Arch Security Advisories](https://security.archlinux.org)
|
|
||||||
|
|
||||||
## Trust-Scoring Kategorien
|
|
||||||
|
|
||||||
| Kategorie | Gewichtung | Beschreibung |
|
|
||||||
|-----------|-----------|--------------|
|
|
||||||
| Shell-Script | 40% | Analyse von PKGBUILD als Shell-Script |
|
|
||||||
| Source-URL | 20% | Verifizierung der Herkunft |
|
|
||||||
| Checksums | 20% | Qualität der Prüfsummen |
|
|
||||||
| Maintainer | 20% | Heuristiken zum Maintainer |
|
|
||||||
|
|
||||||
## Lizenz
|
|
||||||
|
|
||||||
MIT - © 2026 Quasi & Thuumate 👻
|
|
||||||
|
|
||||||
## Links
|
|
||||||
|
|
||||||
- Gitea: https://gitea.die-heimatlosen.eu/arch_agent/aegisaur
|
|
||||||
- Issues: https://gitea.die-heimatlosen.eu/arch_agent/aegisaur/issues
|
|
||||||
+1
-1
@@ -34,7 +34,7 @@ TMPFILE=$(mktemp)
|
|||||||
# Alle zu installierenden Pakete durch aegisaur prüfen
|
# Alle zu installierenden Pakete durch aegisaur prüfen
|
||||||
while read -r package; do
|
while read -r package; do
|
||||||
# Nur AUR-Pakete prüfen (Foreign packages)
|
# Nur AUR-Pakete prüfen (Foreign packages)
|
||||||
if pacman -Qi "$package" >/devdev/null 2>&1; then
|
if pacman -Qi "$package" >/dev/null 2>&1; then
|
||||||
# Paket ist bereits installiert (Upgrade)
|
# Paket ist bereits installiert (Upgrade)
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user