πŸ”’ Automated APK security scanning & PDF reporting with MobSF, AI & Google Drive

⚑ 143 views Β· πŸ”’ SecOps & Security Automation

Description

APK Security Scanner & PDF Report Generator

This workflow automatically analyzes any newly uploaded APK file and produces a clean, professional PDF security report. When an APK appears in Google Drive, the workflow downloads it, sends it to MobSF for security scanning, summarizes the results, generates an HTML report using AI, converts it into a PDF via PDF.co and finally saves the PDF back to Google Drive.

Quick Start: Fastest Way to Use This Workflow

  1. Set up a Google Drive folder for uploading APKs.
  2. Install MobSF using Docker and copy your API key.
  3. Add credentials for Google Drive, MobSF, OpenAI and PDF.co in n8n.
  4. Import the workflow JSON.
  5. Update node credentials.
  6. Upload an APK to the watched folder and let the automation run.

What It Does

This workflow provides a complete automated pipeline for analyzing Android APK files. It removes the manual process of scanning apps, extracting security insights, formatting reports and distributing results. Each step is designed to streamline application security checks for development teams, QA engineers and product managers.

Once the workflow detects a new APK in Google Drive, it passes the file to MobSF for a detailed static analysis. The workflow extracts the results, transforms them into a clear and well-structured HTML report using AI and then converts the report into a PDF. This ensures the end-user receives a polished audit-ready security document with zero manual involvement.

Who’s It For

This workflow is ideal for:

Requirements to Use This Workflow

How It Works & Setup Instructions

Step 1 β€” Prepare Google Drive

Create a folder specifically for APK uploads. Configure the Watch APK Uploads (Google Drive) node to monitor this folder for new files.

Step 2 β€” Install and Run MobSF Using Docker

Install Docker and run:

docker run -it --rm -p 8000:8000 \
  -v $(pwd)/mobsf:/home/mobsf/.MobSF \
  opensecurity/mobile-security-framework-mobsf

Open MobSF at http://localhost:8000 and copy your API key.

Step 3 β€” Add Credentials in n8n

Add credentials for:

Step 4 β€” Configure Malware Scanning

Step 5 β€” Summarize & Generate HTML Report

Step 6 β€” Convert HTML to PDF

Use Generate PDF (PDF.co API) to convert the HTML to PDF.

Step 7 β€” Save Final Report

Download using Download Generated PDF, then upload via Upload PDF to Google Drive.

How To Customize Nodes

Add-Ons

You can extend this workflow with:

Use Case Examples

(Many more use cases can be built using the same workflow foundation.)

Troubleshooting Guide

IssuePossible CauseSolution
MobSF API call failsWrong API key or URLCheck MobSF is running and API key is correct.
PDF not generatedInvalid HTML or PDF.co keyValidate HTML output and verify PDF.co credentials.
Workflow not triggeringWrong Google Drive folderReconfigure Drive Trigger node with the correct folder ID.
APK upload failsFile not in binary modeEnsure HTTP Upload node is using β€œBinary Data” correctly.
Scan returns empty dataMobSF not fully startedWait for full MobSF startup logs before scanning.

Need Help?

If you need assistance setting up this workflow, customizing it or adding advanced features such as Slack alerts, CI/CD integration or bulk scanning, our n8n workflow development team at WeblineIndia can help.

We specialize in building secure, scalable, automation-driven workflows on n8n for businesses of all sizes.

Contact us anytime for support or to build custom workflow automation solutions.

πŸ”— Nodes Used

HTTP Request, Google Drive, Google Drive Trigger, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup