Skip to content

Spifuth/AutoVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

227 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏦 AutoVault

Automated Obsidian vault structure manager for customer-centric operations (RUN/SOC workflows).

AutoVault creates and maintains a standardized folder structure in your Obsidian vault, complete with templates and plugin configuration.

Version Bash Tests Platform


πŸ“¦ Installation

Quick Install (recommended)

# Install to ~/.local (no sudo required)
curl -fsSL https://raw.githubusercontent.com/Spifuth/AutoVault/main/install.sh | bash -s -- --user

# Or system-wide installation
curl -fsSL https://raw.githubusercontent.com/Spifuth/AutoVault/main/install.sh | bash

Homebrew (macOS/Linux)

brew tap Spifuth/autovault
brew install autovault

Arch Linux (AUR)

yay -S autovault

Manual Installation

git clone https://github.com/Spifuth/AutoVault.git
cd AutoVault
sudo ./install.sh

⚑ Quick Start

# 1. Initialize a new vault (interactive)
autovault init --profile pentest

# 2. Add your first customer
autovault customer add 1 --name "Acme Corp"

# 3. Check your setup
autovault doctor

# 4. (Optional) Create a short alias
autovault alias install av

That's it! Your vault is ready with:

  • πŸ“ Folder structure for all customers
  • πŸ“ Templates applied to all index files
  • βš™οΈ Obsidian plugins configured (Templater, Dataview)
  • πŸ“Š Dynamic Run-Hub dashboard

Note: Use autovault init --list-profiles to see available profiles (minimal, pentest, audit, bugbounty).


πŸ“– Documentation

Document Description
docs/COMMANDS.md Complete CLI reference
docs/CONFIGURATION.md Configuration options
docs/TEMPLATES.md Template system guide
docs/OBSIDIAN-SETUP.md Obsidian plugin setup

πŸ—‚οΈ What It Creates

YourVault/
β”œβ”€β”€ Run-Hub.md                    # Dashboard with Dataview queries
β”œβ”€β”€ Run/
β”‚   β”œβ”€β”€ CUST-002/
β”‚   β”‚   β”œβ”€β”€ CUST-002-Index.md     # Customer hub
β”‚   β”‚   β”œβ”€β”€ CUST-002-FP/          # First Pass (routine checks)
β”‚   β”‚   β”œβ”€β”€ CUST-002-RAISED/      # Incidents/tickets
β”‚   β”‚   β”œβ”€β”€ CUST-002-INFORMATIONS/# Knowledge base
β”‚   β”‚   └── CUST-002-DIVERS/      # Misc/sandbox
β”‚   β”œβ”€β”€ CUST-004/
β”‚   └── ...
└── _templates/
    └── Run/                      # Auto-applied templates

πŸ”§ Requirements

  • Bash 4+ (Linux, macOS, WSL)
  • jq - JSON processor
  • Python 3 - For JSON/template operations
  • rsync + ssh - For remote sync feature (optional)
# Check requirements
./cust-run-config.sh requirements check

# Auto-install (Debian/Ubuntu)
./cust-run-config.sh requirements install

🎯 Core Commands

# Configuration
autovault config       # Interactive setup wizard
autovault status       # Show current status
autovault doctor       # Run diagnostics

# Vault Management (recommended)
autovault vault init   # Full setup: structure + templates + plugins

# Customer Management
autovault customer add <id>       # Add customer
autovault customer remove <id>    # Remove customer
autovault customer list           # List all customers

# Backup & Restore
autovault backup create           # Create backup
autovault backup restore <name>   # Restore backup

# Export & Reports
autovault export pdf <target>     # Export to PDF
autovault export html <target>    # Export to HTML
autovault export report <id>      # Generate client report

# Tool Integrations
autovault git-sync watch          # Auto-sync vault changes
autovault nmap import <file> -c <id>   # Import Nmap scans
autovault burp import <file> -c <id>   # Import Burp findings

# System Integration
autovault alias install av        # Create 'av' command
autovault completions install     # Enable tab-completion

See docs/COMMANDS.md for the complete reference.


πŸ”Œ Obsidian Plugins

AutoVault auto-configures these plugins:

Plugin Purpose
Templater Auto-apply templates when creating notes in CUST folders
Dataview Dynamic queries in Run-Hub (open incidents, stats)

Install them from Obsidian: Settings β†’ Community Plugins β†’ Browse


�️ Integrations

Integration Description
Git Auto-Sync Automatic commit/push on vault changes
Nmap Import scan results into customer folders
Burp Suite Import vulnerability findings with severity
Remote Sync Push/pull vault via SSH/rsync
Export PDF, HTML, Markdown export with templates

οΏ½πŸ“ Project Structure

AutoVault/
β”œβ”€β”€ cust-run-config.sh          # Main CLI entry point
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ cust-run-config.json    # Your vault configuration
β”‚   β”œβ”€β”€ templates.json          # All templates in JSON
β”‚   └── obsidian-settings.json  # Plugin settings to apply
β”œβ”€β”€ bash/
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   β”œβ”€β”€ config.sh           # Config management
β”‚   β”‚   └── logging.sh          # Logging utilities
β”‚   β”œβ”€β”€ New-CustRunStructure.sh
β”‚   β”œβ”€β”€ Manage-Templates.sh
β”‚   β”œβ”€β”€ Configure-ObsidianPlugins.sh
β”‚   └── ...
β”œβ”€β”€ docs/                       # Documentation
└── tests/                      # Automated tests

πŸ§ͺ Testing

# Run all tests
./tests/run-tests.sh

# Test specific functionality
./cust-run-config.sh test       # Verify vault structure
./cust-run-config.sh validate   # Validate configuration

πŸ“œ License

MIT License - See LICENSE for details.


🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing)
  3. Commit your changes
  4. Push and open a Pull Request

Made with ❀️ for SOC/RUN teams who love organized documentation.

About

🏦 AutoVault - CLI tool to automate Obsidian vault management for SOC/RUN operations. Handles folder structures, templates, customer tracking, and integrates with Nmap, Burp Suite & Git.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages