Distributable monitoring & security sentinel toolkit — uptime checks plus self-propagating-worm detection, remediation, and prevention.
Project description
StayAwakeBot
StayAwakeBot is a distributable (pip install-able) Python monitoring and security
toolkit. Under one stayawake namespace it ships two bots over a shared core:
- Health sentinel — a URL/uptime availability monitor (HTTP status, latency, TLS, keyword checks) that writes JSON/markdown reports.
- Security sentinel — a supply-chain worm hunter that detects, alerts on, and auto-fixes self-propagating malware (obfuscated loaders, fake fonts, VS Code auto-run tasks, and stealth "evil merges"), opening remediation PRs and gating CI.
Run either bot as a console script locally, or as GitHub Actions workflows that commit reports back to the repository — the same packaged code in both places.
Architecture
Quick start
pip install stayawakebot # from PyPI (released versions)
# or the latest from source:
pip install "stayawakebot @ git+https://github.com/Ndevu12/stayAwakeBot@main"
stayawake-health-check --config config/urls.yml # uptime check
stayawake-security-scan --config config/security.yml --local-only # worm scan
The distribution is published as
stayawakebot(the namestayawakeis taken on PyPI by an unrelated project); the import package andstayawake-*commands are unchanged.
Gate any repo's CI (GitHub Action)
Add the security sentinel to any repository in one step — no install, no clone:
# .github/workflows/worm-guard.yml
on: [pull_request, push]
jobs:
worm-guard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 } # full history so evil merges are detectable
- uses: Ndevu12/strix@v1 # pin to a SHA in production
with:
fail-on-findings: 'true'
Ndevu12/strix ("StayAwakeBot Strix") is the public Action — a thin wrapper that installs the
published stayawakebot scanner from PyPI. Pin @<sha> rather than @v1 for tamper-evident
runs. See Security baseline.
Run via Docker (no local Python needed)
Prefer not to install a Python toolchain at all? Pull the image and scan a mounted repo:
docker run --rm -v "$PWD:/repo:ro" ghcr.io/ndevu12/stayawakebot \
stayawake-security-scan --local-only --fail-on-findings
Tags: :latest, :X.Y.Z, :X.Y, and :sha-<commit>. The image runs as a non-root user, is
built from the same wheel published to PyPI, and ships SLSA provenance + SBOM attestations.
Documentation
- Usage — install, run both bots, secrets, GitHub Actions, deploy your own
- Configuration & Reports — config file fields and report formats
- Architecture — package layout and design principles
- Security architecture — detection, remediation, prevention
- Security baseline — hardening checklist for any repo
- Releasing — maintainer runbook: tags, PyPI Trusted Publishing, verification
- Contributing — development setup and guidelines
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stayawakebot-0.1.2.tar.gz.
File metadata
- Download URL: stayawakebot-0.1.2.tar.gz
- Upload date:
- Size: 48.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a109969858cf97500db5465ed82487274c58b6f0f1d403e242239d0512588e6
|
|
| MD5 |
3c733aca23b20623046e70da207f150a
|
|
| BLAKE2b-256 |
a75612c1f0ede6604854a960f39e49c8e37721a1a883cb3d5bb469aa211a6cea
|
Provenance
The following attestation bundles were made for stayawakebot-0.1.2.tar.gz:
Publisher:
release.yml on Ndevu12/stayAwakeBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stayawakebot-0.1.2.tar.gz -
Subject digest:
4a109969858cf97500db5465ed82487274c58b6f0f1d403e242239d0512588e6 - Sigstore transparency entry: 1950482944
- Sigstore integration time:
-
Permalink:
Ndevu12/stayAwakeBot@14e751596eb06856d28b4f802c3f8e972d77fe7f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Ndevu12
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14e751596eb06856d28b4f802c3f8e972d77fe7f -
Trigger Event:
push
-
Statement type:
File details
Details for the file stayawakebot-0.1.2-py3-none-any.whl.
File metadata
- Download URL: stayawakebot-0.1.2-py3-none-any.whl
- Upload date:
- Size: 68.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24f9b27d7ba0360caf3b0635cb1eb4877f0c0a856171c1b22327ada1b1de3e61
|
|
| MD5 |
cafc398d5cd20451b52f85bc3ca12f50
|
|
| BLAKE2b-256 |
4836b4bde7331b8499efbd879629c0e7c1cf3aa60caa5d4c4d6f55e695ef35f0
|
Provenance
The following attestation bundles were made for stayawakebot-0.1.2-py3-none-any.whl:
Publisher:
release.yml on Ndevu12/stayAwakeBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stayawakebot-0.1.2-py3-none-any.whl -
Subject digest:
24f9b27d7ba0360caf3b0635cb1eb4877f0c0a856171c1b22327ada1b1de3e61 - Sigstore transparency entry: 1950483080
- Sigstore integration time:
-
Permalink:
Ndevu12/stayAwakeBot@14e751596eb06856d28b4f802c3f8e972d77fe7f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Ndevu12
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14e751596eb06856d28b4f802c3f8e972d77fe7f -
Trigger Event:
push
-
Statement type: