Home

Awesome

Specter 👻

Specter is a CLI tool that lets you simply and quickly search and monitor your Databricks audit logs.

Are you ready to haunt your (lake)house?


Key Features


Under the Hood


Installation

CREATE OR REPLACE TABLE logging
AS select * from system.access.audit 
where event_time >= '2024-01-01T00:00:00'
go version
git clone https://github.com/jdbraun/specter.git
cd specter
go mod tidy
mkdir config
go build -o specter
./specter interactive

Usage

Search

The search command allows you to filter audit logs based on various criteria like user, service, and action.

All available service and action names can be found in the documentation.

specter search --user user@email.com --service clusters --action delete --date 2024-10-09 --export results

Monitor

The monitor command runs pre-defined SQL queries that can help you detect potential security issues.

specter monitor --list
specter monitor --run 1

Monitoring Queries

specter monitor --list 

Monitoring queries sourced from the repository for the blog post: Improve Lakehouse Security Monitoring using System Tables in Databricks Unity Catalog.


Examples

Search Results:

Monitor List Results:

Monitor Results:


Limitations


License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.


Contributions

Feel free to contribute by submitting issues or pull requests.