Target: github.com/garrytan/gstack
Version: 0.12.11.0 (commit HEAD at time of audit)
Date: 2026-03-27
Auditor: Independent security review
Scope: Full codebase — HTTP server, browser extension, cookie handling, shell scripts, CI/CD, skill system
Methodology: Static analysis, data flow tracing, authentication boundary mapping, crypto review, double-pass verification (all findings re-validated against source to eliminate false positives)
| #!/usr/bin/env python3 | |
| """ | |
| Claude Code token usage analyzer. | |
| Analyzes ~/.claude/projects/ JSONL files for token usage patterns. | |
| """ | |
| import json | |
| import os | |
| import sys | |
| from pathlib import Path |
Audit reports: Socket (20 alerts) and Snyk (3 findings). Each finding below is cross-referenced against the actual repo code.
For the AI agent applying these fixes: each section has the file path, the current code, and the replacement. All fixes preserve existing functionality. Run the test suite after each group of changes.
IMPORTANT: SKILL.md files are generated by the setup script from templates. Edits to generated SKILL.md files will be overwritten on next ./setup run. Apply fixes to the source templates (SKILL.md.tmpl or equivalent template files) so they persist across regeneration. After editing templates, run ./setup to regenerate all SKILL.md files and verify the fixes appear in the output.
When an inactive subscriber reactivates their membership, the system now charges the current tier price instead of the original purchase price. This only applies when the seller has enabled "apply price changes to existing memberships" on the tier.
Two code paths are covered:
| name | google-analytics |
|---|---|
| description | Automated daily GA4 report → Slack · startup-focused with growth metrics and benchmarks |
Daily analytics digest built for startups. Tracks the metrics that matter at early stage: weekly growth rate, acquisition channels, engagement quality, and organic traction. Compares your numbers against YC and industry benchmarks so you know where you stand, not just what changed.
| #!/bin/bash | |
| # ============================================================================= | |
| # Log Analysis One-Liners for Incident Response & Threat Hunting | |
| # Useful commands for analyzing Linux/web/auth logs during investigations. | |
| # ============================================================================= | |
| # ╔═══════════════════════════════════════════════════════════════════╗ | |
| # ║ AUTH / SSH LOGS (/var/log/auth.log or /var/log/secure) ║ | |
| # ╚═══════════════════════════════════════════════════════════════════╝ |