Skip to content

Security: fernandoncidade/ScaffMind_cpp

SECURITY.md

Política de Segurança / Security Policy — ScaffMind

Selecione o idioma / Select language:
🇧🇷 Português (BR) | 🇺🇸 English (US)


🇧🇷 Português (BR)

Clique para expandir / recolher a Política de Segurança em Português (Brasil)

Política de Segurança — ScaffMind

Versão: v2026.12.1.0 Data: 1 de dezembro de 2026 Mantenedor / Publicador: Fernando Nillsson Cidade (linceu_lighthouse@outlook.com)


1. Versões com Suporte de Segurança

Correções de segurança são avaliadas para a linha oficial de lançamento mais recente (código-fonte aberto no GitHub sob GNU AGPLv3 e pacote binário MSIX/EXE publicado na Microsoft Store):

Linha / Versão Canal Suportada
v2026.12.1.0 (1.0.x) GitHub (AGPLv3) & Microsoft Store (EXE/MSIX) ✅
< 1.0.0 Pré-lançamentos internos ❌

2. Como Relatar uma Vulnerabilidade

Tratamos a integridade do banco local SQLite, a segurança dos parsers, o isolamento dos pacotes Windows/MSIX e a confidencialidade dos usuários do ScaffMind com máxima seriedade.

Se você identificar uma possível vulnerabilidade (como falha de validação na importação de .json, .pdf, .txt/.md ou imagens da lousa, risco de injeção SQL no banco local, escape HTML/PDF inadequado, falha de validação numérica no solver estrutural 2D, limite de recursão no MathRenderer, erro de consentimento/TLS/WebSocket no cliente opcional MicrosoftEdgeTtsClient ou problema de implantação MSIX/windeployqt):

  1. NÃO divulgue publicamente a vulnerabilidade em issues ou discussões abertas.
  2. Envie o relato de forma privada via GitHub Security Advisories na aba Security ou por e-mail diretamente para linceu_lighthouse@outlook.com.
  3. Inclua no relato:
    • Descrição técnica detalhada do problema e componente afetado;
    • Passos reprodutíveis e, quando aplicável, amostra sanitizada (.json, .pdf, .txt, .md ou modelo estrutural);
    • Impacto estimado na versão MinGW, MSVC ou MSIX;
    • Sugestões de correção ou mitigação, se disponíveis.

Processo de Resposta e Divulgação Coordenada

  • O mantenedor confirmará o recebimento do relato privado em prazo razoável (manutenção em regime educacional/independente, sem garantia de SLA corporativo 24/7).
  • Após verificação e correção no repositório GitHub (sob GNU AGPLv3), será preparada atualização correspondente para os pacotes EXE/MSIX na Microsoft Store e publicada nota de segurança na documentação.

3. Compromissos Arquiteturais de Segurança

  • Núcleo 100% Offline-First: Os 7 módulos STEM, as planilhas editáveis e a criptografia em repouso Windows DPAPI para o perfil de acessibilidade (accessibility_profile) persistem exclusivamente em %LOCALAPPDATA%\ScaffMind\scaffmind.db (WAL e PRAGMA foreign_keys = ON, schema v5 em 12 tabelas). O aplicativo não envia telemetria nem opera servidores do desenvolvedor (docs/privacy-policy.md).
  • Canal de Rede Opcional Estritamente Delimitado (Opt-in): Vozes locais Windows SAPI / WinRT vêm ativas por padrão offline via ITtsBackend; Qt6::Network e Qt6::WebSockets são utilizados apenas por MicrosoftEdgeTtsClient após consentimento explícito do usuário (edgeTtsConsentGranted) sobre TLS (https:// / wss:// para speech.platform.bing.com).
  • Queries Parametrizadas, Parser Seguro & Persistência Atômica: Uso exclusivo de QSqlQuery::bindValue, gravação atômica assíncrona de backups com QSaveFile, transações SQL com rollback, limite de recursão (kMaxParseDepth = 64) em MathRenderer, validação de modelos hipostáticos/não finitos em Structural2D, importação offline página a página via Qt6::Pdf sem execução de scripts e escape HTML antes de PDF/TXT.
  • Interface Nativa Sem WebEngine nem QML: UI compilada em C++23 com Qt 6.12.0 LTS Widgets nativos e NativeControlStyle / AccentTabStyle, livre de interpretadores embutidos de script ou QSS global.
  • Isolamento Estrito de Empacotamento Windows & MSIX: Manifestos library/AppxManifest.xml com verificação de integridade (uap10:Content Enforcement="on"), scripts CMake dedicados para MSVC x64 e MinGW-w64 x64, sem mistura de DLLs.

Licenciamento Duplo & Escopo Auxiliar: Esta política cobre a segurança técnica do software. O código-fonte segue a GNU AGPLv3 (LICENSE) e os binários oficiais pagos na Microsoft Store seguem o EULA Comercial (substituindo o SALT, com validade técnica de 12 meses e garantias legais imperativas), preservados os direitos autorais exclusivos sobre documentação e materiais institucionais (Copyright (C) 2026 Fernando Nillsson Cidade. Todos os direitos reservados.).


🇺🇸 English (US)

Click to expand / collapse the Security Policy in English (US)

Security Policy — ScaffMind

Version: v2026.12.1.0 Date: December 1, 2026 Maintainer / Publisher: Fernando Nillsson Cidade (linceu_lighthouse@outlook.com)


1. Supported Versions

Security patches target the latest official release line across the open-source GitHub repository (GNU AGPLv3) and official Microsoft Store MSIX/EXE releases:

Version Line Distribution Channel Supported
v2026.12.1.0 (1.0.x) GitHub (AGPLv3) & Microsoft Store (EXE/MSIX) ✅
< 1.0.0 Internal pre-releases ❌

2. Reporting a Vulnerability

We take local SQLite integrity, parser robustness, Windows/MSIX package isolation, and user privacy in ScaffMind seriously.

If you identify a potential security vulnerability (such as unsafe .json/.pdf/.txt/.md or whiteboard photo parsing, local SQL parameterization defects, PDF/HTML escaping flaws, 2D structural solver validation issues, MathRenderer recursion bounds, consent/TLS/WebSocket issues in the optional MicrosoftEdgeTtsClient, or MSIX/windeployqt deployment defects):

  1. Do NOT publicly disclose the issue via open GitHub issues or discussions.
  2. Report privately via GitHub Security Advisories in the Security tab or email linceu_lighthouse@outlook.com directly.
  3. Include in your report:
    • Detailed technical description and affected file/component;
    • Reproducible steps and sanitized sample inputs where applicable (.json, .pdf, .txt, .md, or structural model);
    • Estimated impact on MinGW, MSVC, or MSIX builds;
    • Suggested mitigations or patches, if any.

Response & Coordinated Disclosure Process

  • The maintainer will acknowledge private reports within a reasonable best-effort timeframe (independent/academic maintenance without a commercial 24/7 SLA).
  • Once validated and fixed in the GitHub repository (GNU AGPLv3), a corresponding package update will be submitted for official EXE/MSIX releases on the Microsoft Store with accompanying security notes.

3. Architectural Security Commitments

  • 100% Offline-First Core: All 7 STEM modules, editable spreadsheets, and at-rest Windows DPAPI protection for the accessibility profile (accessibility_profile) store user records solely inside %LOCALAPPDATA%\ScaffMind\scaffmind.db (WAL and PRAGMA foreign_keys = ON, 12 tables via v5 migration). Zero telemetry or publisher servers exist (docs/privacy-policy.md).
  • Strictly Scoped Optional Network Channel (Opt-in): Local offline Windows SAPI / WinRT voices run active by default via ITtsBackend; Qt6::Network and Qt6::WebSockets are used exclusively by MicrosoftEdgeTtsClient after explicit user opt-in consent (edgeTtsConsentGranted) over TLS (https:// / wss:// to speech.platform.bing.com).
  • Parameterized SQL, Safe Parsers & Atomic Persistence: Exclusive QSqlQuery::bindValue parameterization, non-blocking atomic QSaveFile JSON backups, transactional SQL restore with rollback, MathRenderer recursion depth guard (kMaxParseDepth = 64), Structural2D hypostatic/finite stability validation, script-free offline Qt6::Pdf extraction, and HTML escaping before PDF/TXT export.
  • Native UI Without WebEngine or QML: Compiled in C++23 using native Qt 6.12.0 LTS Widgets plus NativeControlStyle and AccentTabStyle, with zero embedded script engines or global QSS.
  • Strict Windows & MSIX Runtime Isolation: library/AppxManifest.xml enforces uap10:Content Enforcement="on" with dedicated MSVC x64 and MinGW-w64 x64 deployment scripts in cmake/ preventing DLL conflicts.

Dual Licensing & Auxiliary Scope: This policy covers software security. Original source code is governed by GNU AGPLv3 (LICENSE) and paid official Store binaries follow the Commercial EULA (superseding SALT, with a 12-month technical validity period and mandatory statutory consumer rights), while documentation and institutional materials remain under exclusive copyright (Copyright (C) 2026 Fernando Nillsson Cidade. All rights reserved.).

There aren't any published security advisories