SSZcreate/Pentab_server / .agents/skills/cybersecurity/skills/implementing-mobile-application-management
implementing-mobile-application-management
UnverifiedImplements Mobile Application Management (MAM) policies to protect enterprise data on managed and unmanaged mobile devices through app-level controls including data loss prevention, selective wipe, app configuration, and containerization. Use when securing corporate apps on BYOD devices, implementing Intune App Protection Policies, or enforcing data separation between personal and work apps. Activates for requests involving MAM deployment, app protection policies, mobile containerization, or BYOD security.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.0 KB |
| SKILL.md | skill md | 6.5 KB |
| assets/template.md | markdown | 628 B |
| references/api-reference.md | markdown | 1.3 KB |
| references/standards.md | markdown | 758 B |
| references/workflows.md | markdown | 808 B |
| scripts/agent.py | script | 5.8 KB |
| scripts/process.py | script | 3.7 KB |
scripts/process.py
View on GitHub#!/usr/bin/env python3
"""
MAM Policy Compliance Checker
Validates Intune App Protection Policy configurations against security baselines.
Usage:
python process.py --policy policy.json [--baseline tier2] [--output report.json]
"""
import argparse
import json
import sys
from datetime import datetime
from pathlib import Path
BASELINE_TIER2 = {
"pin_required": True,
"min_pin_length": 6,
"biometric_enabled": True,
"encrypt_app_data": True,
"screen_capture_blocked": True,
"backup_blocked": True,
"clipboard_restriction": "managedApps",
"jailbreak_blocked": True,
"offline_grace_period_max_minutes": 1440,
"max_pin_retries": 5,
}
BASELINE_TIER3 = {
**BASELINE_TIER2,
"min_pin_length": 8,
"clipboard_restriction": "blocked",
"offline_grace_period_max_minutes": 720,
"save_as_blocked": True,
"printing_blocked": True,
"max_pin_retries": 3,
}
def check_compliance(policy: dict, baseline: dict) -> list:
"""Check policy against baseline requirements."""
findings = []
data = policy.get("dataProtectionSettings", {})
access = policy.get("accessSettings", {})
conditional = policy.get("conditionalLaunchSettings", {})
checks = {
"pin_required": access.get("pinRequired"),
"min_pin_length": access.get("minimumPinLength", 0),
"biometric_enabled": access.get("biometricEnabled"),
"encrypt_app_data": data.get("encryptAppData"),
"screen_capture_blocked": data.get("screenCaptureBlocked"),
"backup_blocked": data.get("backupBlocked"),
"jailbreak_blocked": conditional.get("jailbreakBlocked"),
}
for control, expected in baseline.items():
actual = checks.get(control)
if actual is None:
findings.append({
"control": control,
"status": "MISSING",
"expected": expected,
"actual": None,
"severity": "HIGH",
})
elif isinstance(expected, bool) and actual != expected:
findings.append({
"control": control,
"status": "NON_COMPLIANT",
"expected": expected,
"actual": actual,
"severity": "HIGH",
})
elif isinstance(expected, int) and isinstance(actual, int) and actual < expected:
findings.append({
"control": control,
"status": "BELOW_MINIMUM",
"expected": f">= {expected}",
"actual": actual,
"severity": "MEDIUM",
})
return findings
def main():
parser = argparse.ArgumentParser(description="MAM Policy Compliance Checker")
parser.add_argument("--policy", required=True, help="Policy JSON file")
parser.add_argument("--baseline", choices=["tier2", "tier3"], default="tier2")
parser.add_argument("--output", default="mam_compliance.json")
args = parser.parse_args()
with open(args.policy) as f:
policy = json.load(f)
baseline = BASELINE_TIER3 if args.baseline == "tier3" else BASELINE_TIER2
findings = check_compliance(policy, baseline)
compliant_count = len(baseline) - len(findings)
report = {
"check": {"policy": args.policy, "baseline": args.baseline, "date": datetime.now().isoformat()},
"summary": {
"total_controls": len(baseline),
"compliant": compliant_count,
"non_compliant": len(findings),
},
"findings": findings,
}
with open(args.output, "w") as f:
json.dump(report, f, indent=2)
print(f"[+] Compliance: {compliant_count}/{len(baseline)} controls pass")
print(f"[+] Report saved: {args.output}")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 466k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |