Skip to content

Latest commit

 

History

History
312 lines (171 loc) · 13.5 KB

BestPracticesChecklist.md

File metadata and controls

312 lines (171 loc) · 13.5 KB

AOSSIE Best Practices Checklist

Criteria adapted from the OpenSSF Best Practices Badge (MIT / CC BY 3.0) by OpenSSF contributors. Modified for AOSSIE multi-repo template use.

Purpose: Covers OpenSSF Best Practices criteria that are NOT auto-detected by OpenSSF Scorecard. Scorecard already handles: License, SAST tools, CI tests, Security Policy file, Branch Protection, Pinned Dependencies, Signed Releases, Maintained status, and Known Vulnerabilities.

How to use:

  1. Fill in checkboxes below — tick [x] for Met, leave [ ] for Unmet, use [~] for N/A
  2. Add a brief note or URL after each item as evidence
  3. Run the checklist-score workflow to update the badge automatically

Legend:

  • 🔴 MUST — Required for passing
  • 🟡 SHOULD — Required unless documented rationale given
  • 🔵 SUGGESTED — Optional but recommended
  • ⚪ N/A — Mark [~] if not applicable, add justification

Score Summary

Category Met Total Status
Basics 8 8 ✅
Change Control 6 6 ✅
Reporting 8 8 ✅
Quality 9 11 🟡
Security 9 9 ✅
Analysis 6 7 🟡
Total 46 49 94%

🏗️ Basics

Project Website & Documentation

Other Basics

  • 🔴 discussion — Project has a searchable, URL-addressable discussion mechanism (GitHub Issues, Discord with archive, mailing list, etc.) that doesn't require proprietary client software.

  • 🟡 english — Documentation is provided in English and English bug reports/comments are accepted.

    • Note: English docs and Issues accepted

🔄 Change Control

Version Control

Version Numbering

Release Notes

  • 🔴 release_notes — Each release includes human-readable release notes summarizing major changes. Raw git log output is NOT acceptable.

  • [~] 🔴 release_notes_vulns — Release notes identify every publicly known vulnerability (with CVE) fixed in that release.

    • N/A — Justification: No publicly known CVEs fixed yet; will document when applicable

🐛 Reporting

Bug Reporting

  • 🔴 report_process — A bug-reporting process exists (e.g., GitHub Issues link in README).

  • 🟡 report_tracker — An issue tracker (e.g., GitHub Issues) is used to track individual bugs.

  • 🔴 report_responses — A majority of bug reports submitted in the last 2–12 months have been acknowledged (response ≠ fix).

    • Note: Self-cert: Issues and PR reviews are actively triaged during GSoC
  • 🟡 enhancement_responses — More than 50% of enhancement requests in the last 2–12 months have received a response.

    • Note: Self-cert: Feature PRs and mentor feedback are responded to
  • 🔴 report_archive — Reports and responses are publicly archived and searchable (GitHub Issues satisfies this).

Vulnerability Reporting

  • 🔴 vulnerability_report_process — A vulnerability reporting process is documented (e.g., SECURITY.md).

  • 🟡 vulnerability_report_private — If private vulnerability reporting is supported, the method for private submission is documented.

    • Evidence URL: SECURITY.md documents private reporting / advisories
  • [~] 🔴 vulnerability_report_response — Initial response to any vulnerability report received in the last 6 months was within 14 days.

    • N/A — Justification: No vulnerability reports received in the last 6 months

✅ Quality

Build System

  • 🔴 build — If the project requires building, a working build system exists that can auto-rebuild from source.

    • Note: pip install -e . / Docker image build via Dockerfile
  • 🔵 build_common_tools — Common build tools are used (npm, pip, cargo, make, gradle, etc.). (SUGGESTED)

    • Note: pip / Docker
  • 🟡 build_floss_tools — The project can be built using only FLOSS tools.

    • Note: Python, pip, Docker (FLOSS tooling)

Automated Testing

  • 🔵 test_invocation — The test suite can be invoked in a standard way for the language (e.g., npm test, pytest, cargo test). (SUGGESTED)

    • Note: pytest (see CONTRIBUTING.md and CI)
  • 🔵 test_most — The test suite covers most code branches, input fields, and functionality. (SUGGESTED)

    • Note: Growing suite under tests/; coverage not yet >90%

New Functionality Testing Policy

  • 🔴 test_policy — The project has a general policy that new functionality must include tests in the automated test suite.

    • Note: CONTRIBUTING.md PR checklist requires tests when needed
  • 🔴 tests_are_added — Evidence exists that the test policy has been followed in recent major changes (e.g., PRs include tests).

    • Evidence URL: #42
  • 🔵 tests_documented_added — The test policy is documented in contribution instructions. (SUGGESTED)

Linting / Warning Flags

  • 🔴 warnings — At least one linter or compiler warning flag is enabled (ESLint, Pylint, clippy, golangci-lint, Slither for Solidity, etc.).

    • Note: ruff (dev extra)
  • 🔴 warnings_fixed — Warnings from the linter are addressed (not suppressed without reason).

    • Note: Addressed in PR review / local ruff checks
  • 🔵 warnings_strict — Project uses maximum strictness in linter config where practical. (SUGGESTED)

    • Note: Reasonable ruff defaults; not maximum pedantic yet

🔐 Security

Secure Development Knowledge

  • 🔴 know_secure_design — At least one primary developer knows how to design secure software (familiar with OWASP, threat modeling, secure-by-default principles).

    • Note: Self-cert: token handling, verified-only DMs, dry-run modes, no secrets in remote config
  • 🔴 know_common_errors — At least one primary developer knows common vulnerability types for this software's category and how to mitigate them (e.g., injection, XSS, reentrancy for Solidity, prompt injection for AI).

    • Note: Self-cert: aware of token leakage, Discord mention injection, GitHub App least privilege

Cryptography (mark N/A if project does not handle cryptography)

  • [~] 🔴 crypto_published — Only publicly reviewed cryptographic protocols/algorithms are used by default.

    • N/A — Justification: No application-layer crypto protocols beyond TLS and GitHub App JWT (PyJWT)
  • [~] 🟡 crypto_call — Project calls an established crypto library rather than reimplementing crypto functions.

    • N/A — Justification: Uses PyJWT/cryptography libraries when App auth enabled; no custom crypto
  • [~] 🔴 crypto_working — No broken algorithms (MD4, MD5, single DES, RC4, Dual_EC_DRBG) used unless required for interoperability (must be documented).

    • N/A — Justification: No broken crypto algorithms in app logic
  • [~] 🔴 crypto_keylength — Key lengths meet NIST 2030 minimums by default.

    • N/A — Justification: Relies on GitHub/Discord TLS and standard JWT libs
  • [~] 🔴 crypto_password_storage — Passwords for external users are stored as iterated salted hashes (Argon2id, bcrypt, scrypt, PBKDF2).

    • N/A — Justification: Project does not store user passwords
  • [~] 🔴 crypto_random — Cryptographic keys and nonces are generated using a CSPRNG; insecure generators (Math.random, rand()) are NOT used for security purposes.

    • N/A — Justification: No app-level crypto key generation; verification codes are short-lived random tokens via secrets module where used
  • 🟡 delivery_unsigned — Cryptographic hashes are NOT retrieved over plain HTTP without a signature check.

    • Note: Dependencies and releases retrieved over HTTPS

🔬 Analysis

Static Code Analysis

  • [~] 🔴 static_analysis_fixed — All medium+ severity vulnerabilities found by static analysis are fixed in a timely manner after confirmation.

    • N/A — Justification: No confirmed medium+ SAST findings currently outstanding
  • 🔵 static_analysis_common_vulnerabilities — The static analysis tool includes checks for common vulnerabilities in the language/environment (e.g., eslint-plugin-security, bandit, Slither). (SUGGESTED)

    • Note: CodeRabbit + ruff; Bandit not yet in CI
  • 🔵 static_analysis_often — Static analysis runs on every commit or at least daily (CI integration). (SUGGESTED)

    • Note: CodeRabbit on PRs; pytest CI on every PR

Dynamic Code Analysis

  • [~] 🔵 dynamic_analysis — At least one dynamic analysis tool is applied before major releases (fuzzer, web app scanner like OWASP ZAP, etc.). (SUGGESTED)

    • N/A — Justification: Discord bot — no public web attack surface; pytest integration-style tests cover flows
  • 🔵 dynamic_analysis_enable_assertions — Dynamic analysis / testing runs with assertions enabled (not just production mode). (SUGGESTED)

    • Note: pytest runs with assertions enabled
  • [~] 🔴 dynamic_analysis_fixed — Medium+ severity vulnerabilities found by dynamic analysis are fixed in a timely manner.

    • N/A — Justification: No dynamic analysis medium+ findings
  • [~] 🔵 dynamic_analysis_unsafe — If the project uses memory-unsafe languages (C/C++), memory safety tools (Valgrind, AddressSanitizer) are used. (SUGGESTED)

    • N/A — Justification: Python (memory-safe language)

📎 Project-Specific Notes

Add domain-specific notes here for Web3, Full-Stack, or AI projects.

Web3 / Solidity Notes

  • Scorecard does not audit Solidity-specific security. Use Slither for static_analysis and warnings criteria.
  • For crypto_* criteria, document which cryptographic primitives your contracts rely on (e.g., ECDSA in EVM is standard).
  • Smart contract audit reports count as evidence for know_secure_design.

Full-Stack / Next.js Notes

  • For crypto_password_storage: document which auth library handles hashing (e.g., NextAuth + bcrypt).
  • For dynamic_analysis: OWASP ZAP can be run as a GitHub Action.

AI / LLM Notes

  • For know_common_errors: include awareness of prompt injection, data leakage, and model output validation.
  • For dynamic_analysis: consider adversarial input testing as a form of dynamic analysis.

This checklist complements OpenSSF Scorecard (auto-detected checks) and is inspired by the OpenSSF Best Practices Badge passing criteria.