agentleFS
TheBeardedBearSASTheBeardedBearSAS/claude-craft/.claude/skills/security-reactnative/SKILL.md

security-reactnative

Skill108 starsChanged 16 days agoMITView on GitHub

Security - React Native 0.87 Best Practices. Use when reviewing security, implementing auth, or hardening code.

The file

Files
SKILL.md

Security - React Native 0.87 Best Practices

Ce skill fournit les bonnes pratiques de sécurité pour React Native 0.87 avec la New Architecture.

Principes clés

  • Sécurité native : Keychain (iOS) / Keystore (Android) pour les secrets sensibles (pas AsyncStorage)
  • HTTPS uniquement : ATS (iOS) et Network Security Config (Android) strictes
  • JSI synchrone : validation côté natif des appels TurboModules
  • Expo SecureStore : abstraction sécurisée cross-platform pour les tokens

Spécificités React Native 0.85+

  • TurboModules sécurisés : validation des inputs côté natif avant traitement JSI
  • Bridge legacy supprimé : pas de risques de sérialisation JSON vulnérable
  • Fabric : rendu natif isolé du thread JS (limite les injections UI)
  • Hermes obligatoire : bytecode natif (protection contre le reverse engineering du bundle JS)

Anti-patterns critiques

  • ❌ Stocker des tokens dans AsyncStorage (plaintext)
  • ❌ HTTP non sécurisé en production
  • ❌ Code PIN/biométrie sans SecureStore
  • ❌ Deep links non validés (injection de navigation)
  • ❌ WebView sans validation de l'origine

Sources : OWASP Mobile Top 10, RN Security Best Practices

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.