⚙️ Monitor APK uploads and run MobSF analysis with OpenAI and Slack alerts

⚡ 16 views · ⚙️ DevOps & CI/CD

Description

APK Upload Monitoring and Automated MobSF Analysis with Slack Reporting

This workflow monitors a Google Drive folder for newly uploaded APK files, automatically downloads them, triggers a MobSF static analysis scan, processes the output to detect unused or risky libraries and sends a developer-friendly summary directly to Slack. It is ideal for teams who want fast, automated insights into Android app dependencies.

⚡ Quick Start: Rapid Implementation Steps

  1. Connect Google Drive and select the APK upload folder.
  2. Add your MobSF server URL in both HTTP Request nodes.
  3. Add your OpenAI API credentials.
  4. Connect Slack and choose your preferred channel.
  5. Activate the workflow — you’re ready to automate APK analysis.

What It Does

This workflow automates the complete static analysis process for Android APK files. When an APK is uploaded to a specific Google Drive folder, n8n immediately retrieves the file and sends it to MobSF for scanning. MobSF returns detailed JSON-based findings, including code, library usage and component insights.

The workflow then uses a series of JavaScript code nodes to extract relevant package information, compare used vs. detected packages, identify unused dependencies and classify them by risk. These results are transformed into a concise summary using an AI model. Finally, the summary is posted automatically to a Slack channel for fast team visibility.

This enables developers to take quick action on dependency cleanup, performance optimizations or security risks without manually reading the full MobSF report.

Who’s It For

Requirements to Use This Workflow

How It Works & How To Set Up

1. Google Drive Trigger Setup

2. Downloading the APK

3. Configure MobSF Upload

4. Trigger MobSF Static Scan

5. Code Nodes (Package Processing)

These three nodes:

6. AI-Based Summary Generation

7. Slack Notification

8. Activate the Workflow

Once all credentials are added, enable the workflow and test by uploading an APK.

How To Customize Nodes

Google Drive Trigger

MobSF Request Nodes

Code Nodes

OpenAI Summary Node

Slack Node

Add-Ons (Optional Extensions)

Use Case Examples

  1. Automated Dependency Cleanup Quickly identify unused libraries after each build upload.
  2. Security Monitoring for Android Releases Ensure risky system packages aren’t unintentionally included.
  3. Team Collaboration Enhancement Send automated insights to Slack for faster decision-making.
  4. QA Validation Before Deployment Confirm that declared dependencies match actual usage.
  5. Build Optimization Remove unnecessary packages to reduce APK size and performance overhead.

> There are many more possible uses depending on team needs and environment.

Troubleshooting Guide

IssuePossible CauseSolution
Workflow not triggeringWrong Google Drive folderRe-select the correct APK folder in the trigger node
MobSF upload failingWrong URL or server not runningCheck MobSF Docker container and update the URL
MobSF scan shows empty resultsAPK not parsed successfullyVerify the APK is valid and not corrupted
Slack message not deliveredChannel permissions or wrong channel IDReconnect Slack credentials and select a valid channel
AI summary node failsMissing OpenAI credentialsAdd OpenAI API key in the credentials section

Need Help?

If you need assistance setting up, extending or customizing this workflow, our n8n automation experts at WeblineIndia are available to help.

Whether you want to add new features, integrate more systems or build similar automation workflows, feel free to reach out to us for professional support.

🔗 Nodes Used

HTTP Request, Slack, Google Drive, Google Drive Trigger, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup