Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Android native code security

Audits and hardens Android JNI and C or C++ code against overflows, race bugs and leaked secrets in your app.

Claude's review

8/10 Specific, careful JNI security rules for bounds, references, TOCTOU and secrets, with code patterns.

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

Audits, detects, and remediates Android JNI and native C/C++ boundary security vulnerabilities. Use this skill when reviewing, auditing, hardening, or securing Android JNI boundaries, Kotlin external or Java native methods, and C/C++ shared libraries (System.loadLibrary) against buffer overflow, memory pinning, Time-of-Check to Time-of-Use (TOCTOU) file path races, hardcoded C++ cryptographic keys, cross-thread JNI reference and session callback lifecycles, or unhandled pending JVM exceptions and local reference leaks. Don't use for pure managed Kotlin or Java code without native JNI bindings or general reverse-engineering of stripped binaries.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: android-jni-security
description: Audits, detects, and remediates Android JNI and native C/C++ boundary
  security vulnerabilities. Use this skill when reviewing, auditing, hardening, or
  securing Android JNI boundaries, Kotlin external or Java native methods, and C/C++
  shared libraries (System.loadLibrary) against buffer overflow, memory pinning, Time-of-Check
  to Time-of-Use (TOCTOU) file path races, hardcoded C++ cryptographic keys, cross-thread
  JNI reference and session callback lifecycles, or unhandled pending JVM exceptions
  and local reference leaks. Don't use for pure managed Kotlin or Java code without
  native JNI bindings or general reverse-engineering of stripped binaries.
license: Complete terms in LICENSE.txt
metadata:
  author: Google LLC
  last-updated: '2026-11-19'
  keywords:
  - recipe
  - Android
  - Security
  - JNI
  - NDK
  - Native
  - C++
  - System.loadLibrary
  - GetByteArrayRegion
  - GetByteArrayElements
  - ReleaseByteArrayElements
  - ParcelFileDescriptor
  - TOCTOU
  - AndroidKeyStore
  - memset_explicit
  - NewGlobalRef
  - DeleteGlobalRef
  - AttachCurrentThread
  - ExceptionCheck
---

This skill provides rules and code patterns to secure Android JNI boundaries.
Follow these patterns to prevent buffer overflows, pinned memory leaks, and
Time-of-Check to Time-of-Use (TOCTOU) file races. They also prevent hardcoded
native secrets, cross-thread reference crashes, and unhandled pending JVM
...

From android's repository, Apache-2.0 licence.

Related skills

  • Checked

    Codebase quality audit

    Audits a whole code repo for bugs, security holes, slow paths and dead code, ranked in plain English.

    by DietrichGebert 203k
    7/101 credit
  • Checked

    Security and CVE audit

    Runs a security and CVE audit on code in any language and scores it out of 100, with false alarms filtered.

    by opencrabs 1k
    7/101 credit
  • Checked

    OWASP code review

    Reviews code for security flaws using the latest OWASP Top 10 lists, including those for AI and agent apps.

    by agamm 467
    7/101 credit
  • Checked

    Pull request security review

    Reviews one pull request for exploitable security holes only, filtering out false positives before reporting.

    by EricTechPro 771
    7/101 credit
  • Checked

    Code security hardening

    Hardens code that handles user input, logins and data against the OWASP Top 10, starting from a threat model.

    by addyosmani 122k
    8/101 credit
  • Checked

    Security incident response

    Runs a security incident from detection to closure, including containment, communication and the review after.

    by cbrock84 2.6k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added