Case Study — Product Security & Ethical Hacking

One product. Every attack surface. Tested end to end.

Acme Corporation is a licensed cannabis cultivator and retailer. Its seed-to-sale platform tracks regulated, high-value inventory by RFID across every room, runs the grow-room controls, and rings up sales at the point of sale — tied together by a mobile app and a compliance cloud. Xari was brought in to audit the whole system the way a real adversary would: the RFID and radio links, the firmware, the cryptographic protocol, the apps, the POS, and the cloud. Authorized, ethical hacking — black-box first, then a consensual deep dive.

Representative engagement. The client and product names are fictionalized to protect confidentiality; the methodology, tooling and coverage are exactly what Xari runs. Findings are never published — this page describes what we test, not any client's results.

12
attack surfaces, one platform
2
phases — black-box → gray-box
50+
mapped test cases
10
standards & bodies of knowledge

The Approach

Ethical hacking, in two consensual phases.

An external attack tells you what anyone can do. A deep dive tells you what a determined insider can do. We run both and weight the findings accordingly — a break that needs no privileged access counts for more.

PHASE 1 · BLACK-BOX

What a real attacker can do

No privileged access. We work from the public app builds, published docs, a walk-in customer's view at the point of sale, and whatever is in RFID and Wi-Fi range of the facility — the same starting point as an outsider or a low-privilege insider.

  • External RFID / radio / Wi-Fi observation
  • Public APK / IPA analysis
  • Cloud API probing with test accounts
  • Answers: "what can an outsider or a walk-in reach?"
PHASE 2 · GRAY / WHITE-BOX

What a motivated insider can do

Consensual, authorized access: debug-unlocked test units, signed development builds, firmware images or source, and protocol documentation. Every artifact stored on encrypted, air-gapped media.

  • Firmware extraction & source review
  • Instrumented apps for runtime hooking
  • Cryptographic protocol verification
  • Answers: "what can a motivated insider with full access exploit?"

The Attack Surface

Every trust boundary the product depends on.

The stakes here are physical and financial: a software decision can move regulated, high-value inventory — or change the climate a living crop depends on. So we test every path an attacker could take to those outcomes — wireless, hardware, apps, and cloud — not just the web tier.

Wireless & RF

Where diversion starts. RFID tags on plants and inventory read across every room, RFID staff badges, and BLE handheld scanners — verified they can't be cloned, swapped or replayed to make product vanish from the record or walk out the door. Plus facility Wi-Fi a rogue access point can't harvest, and BLE pairing done right: LE Secure Connections, not Just Works or downgradable Legacy, with resistance to KNOB and to MITM via a cloned advertising address.

Sniffle / nRF52840Wiresharkaircrack-nghcxdumptoolProxmark3SDR

Cryptographic protocol

Custom app-layer crypto is the highest-yield surface in connected products. We check for AEAD done right (AES-GCM / ChaCha20-Poly1305, not a home-grown encrypt-then-MAC), nonce discipline that survives power loss, bounded replay windows, key separation via a KDF, and a per-device key lifecycle so one cracked reader never compromises the estate.

source reviewTamarin / Cryptolcustom replay harnessAEAD analysis

Firmware & hardware

The RFID readers and room controllers, opened up: debug ports (JTAG / SWD) removed or locked in production, no privileged serial console, tamper evidence on teardown, verified secure boot, and firmware you can't simply dump and mine for secrets. Opportunistic side-channel observation where the hardware invites it.

Ghidra / IDAbinwalkSegger J-Linklogic analyzerChipWhisperer

Mobile apps — iOS & Android

MASVS-aligned. We decompile the shipped staff / inventory app APK / IPA, hunt hardcoded secrets and API keys, verify session tokens land in the Keychain / Keystore, confirm certificate pinning has no silent fallback, and test runtime-hooking and anti-tamper defenses against a real attacker with a copy of the binary.

jadx / apktoolHopper / GhidraFrida / ObjectionMobSFmitmproxy

Desktop application

The point-of-sale terminal app decompiled and reverse-engineered: secrets and cloud endpoints baked into the binary, update and signature integrity, tampering resistance, and whether the local privilege boundary holds when a till machine is tampered with or an operator's PC is hostile.

decompilersbinary diffingupdate-integrity reviewRE

Cloud API & database

The OWASP API Security Top 10 on the inventory and compliance cloud: broken object-level authorization (BOLA / IDOR) so one site can't read or edit another's inventory, broken authentication and account takeover, injection (SQL / NoSQL), mass assignment, real rate limiting, and encryption at rest for customer and payment data. Tampered inventory or compliance records — the route to quiet diversion — are the high-value target here.

Burp Suite ProOWASP ZAPsqlmapPCI DSS review

OTA & updates

A malicious firmware update pushed to an RFID reader or room controller is a permanent backdoor, so this is one of the highest-impact surfaces. We verify signed payloads (Ed25519 / ECDSA), downgrade and rollback protection so a known-vulnerable build can't be re-flashed, and clean power-loss recovery. No patch path at all is itself a finding.

signature reviewrollback testsA/B partition review

IoT & OT integration

The grow-room controls are real OT: lighting, irrigation and fertigation, HVAC and CO₂ that a software decision turns into a physical change in a living crop. We verify a compromised app or cloud can't quietly alter a room or destroy a harvest, that each device's identity is bound to hardware, and where the facility ties into building-management systems. Anchored to OWASP ISVS and NIST SP 800-213A.

ISVSNIST 800-213AICS / OTsensor review

The Model

Every privileged action is an authenticated, encrypted command.

Move or write off inventory, adjust a grow room, void a sale, enroll a reader — each one flows through one encrypted channel. That channel is the spine of the audit: if it holds, a captured command can't be replayed and a rogue device can't forge one. Everything else is defense in depth around it.

Trust boundaries of a regulated-inventory track-and-trace platform: RFID plant tags, handheld scanners and room controls reach the on-site facility system; it talks to a site gateway and the compliance cloud; the point-of-sale terminal and the mobile app are authenticated clients. Every privileged action is an authenticated, encrypted command. device trust boundary RFID plant tag BLE scanner Room controls Facility system readers · controllers tracks every room Site gateway site ↔ cloud Compliance cloud inventory · POS records · reports Mobile app staff · iOS/Android POS terminal retail RFID / scan local net Wi-Fi / TLS API
RFID / command → facility Telemetry & state → cloud and clients

Methodology & Standards

Grounded in the field's bodies of knowledge — not an ad-hoc checklist.

Every test maps to a recognized standard, so the coverage is auditable and the report speaks the language your engineers and your customers already trust.

CyBOK v1.1NIST SP 800-115NIST SP 800-121 R2 · BluetoothNIST SP 800-213A · IoTOWASP MASVS v2OWASP ISVS v1OWASP API Security Top 10OWASP PTESPCI DSS · paymentsCWE

Threat model — who we test against

Severity is judged by who can actually pull an attack off. A finding is Critical only if a T1–T3 attacker can exploit it. Higher tiers are scoped or referred to a separate engagement.

T1 · Opportunistic in scopeA walk-in customer or on-site visitor, or someone who lifts a tag or a badge. Physical proximity, common tools.
T2 · Adjacent RF attacker in scopeWithin RFID / Bluetooth / Wi-Fi range of the facility. Off-the-shelf RFID and radio gear, modest software skills.
T3 · Motivated insider in scopeAn employee with legitimate access who wants to divert product, falsify records, or cover shrink. Strong motive.
T4 · Targeted attacker limitedA specific target; combines physical, RF, network and social attacks. Findings note where T4 is required.
T5 · Vendor insider outThe platform vendor's own staff — code-signing and cloud-root access. Covered by the vendor's personnel security.

Deliverables

Evidence your team can act on — and hand to a customer.

Penetration test reportOne entry per finding: severity and a CVSS-style vector, affected component, the threat tier required to exploit it, reproduction steps, remediation, and CWE / CyBOK references.
Executive summaryA short, non-technical read on overall risk posture and headline findings — suitable for leadership and prospective customers or investors.
Raw evidence archiveAll captures, code and artifacts on encrypted media with a SHA-256 manifest, so every claim in the report is independently verifiable.
Findings exportCSV + JSON for direct ingestion into your issue tracker — no re-keying between the report and your backlog.
Remediation roadmapA prioritized list with rough engineering-effort estimates and a dependency graph, so fixes land in the right order.
Debrief & data handlingA working session with your engineers. Client artifacts destroyed to NIST SP 800-88 within 30 days of report acceptance, or returned.
A tampered record can walk regulated product out the door — the system that writes it deserves the scrutiny that product's value demands.
— The Xari security team

What Xari Does

We build connected products — so we know how to break them.

Because we ship connected products end to end, our security work isn't a checklist run from the outside — it's review by people who have built the same layers they're attacking.

Let's talk

Shipping a connected product? Find out what an attacker sees.

Wireless, firmware, mobile, desktop, cloud — Xari audits the whole system the way a real adversary would, and hands you a roadmap to close what we find.

Get in touch

Representative engagement. Client and product names are fictionalized to protect confidentiality; the methodology, tooling and coverage shown are what Xari runs on real assessments. This page describes what an audit covers — no client's findings are ever published. Standards are the property of their respective bodies.

© 2026 All rights reserved

XARI.IO

Let’s build something great together!

Tell us about your project and how we can help by filling the following form. We reply to all inquiries within one business day.