
Offline-first encrypted event pipeline with durable SHA-256 hash-chained audit trail, PII detection/redaction, schema validation, anomaly scoring, sync/backoff, and compliance presets for regulated device fleets.
An offline-first event pipeline with a hash-chained audit trail that a server can anchor, for regulated device fleets. Devices lose network and keep recording: events are encrypted at rest, validated, PII-screened, hash-chained, and synced when connectivity returns. Android today (API 33+), iOS in preview from v1.7.0.
API reference: sara-star-quant.github.io/KioskOps-SDK-Android-Enterprise (auto-published from main and release tags).
Disclaimer: Security controls and regulatory-framework references are engineering aids only, not legal, compliance, or security advice. See docs/LEGAL.md.
KioskOps is an embedded data-layer and audit SDK. It protects the events your app produces, makes alteration of the audit record detectable, and maps its controls to compliance frameworks.
| It is | It is not |
|---|---|
| An encrypted, offline-first event queue with batch sync and backoff | A RASP or app-shielding product |
| A SHA-256 hash-chained audit trail that survives restarts | An obfuscator, packer, or anti-repackaging tool |
| Schema validation, PII detection and redaction, anomaly scoring | A replacement for Knox, Zebra, or your MDM |
| Compliance presets and control mappings (FedRAMP, NIST 800-171, CJIS, GDPR, ASD E8) | Certified; no FIPS 140-3, Common Criteria, or EMVCo claim |
| Device posture and key-attestation reporting for your server to verify | An authentication or identity product (no FIDO, no transaction signing) |
| Signed releases with build provenance and an SBOM | A guarantee of compliance; see the disclaimer above |
Apps that run in a hostile runtime, such as banking and payment apps, need a RASP and identity vendor like OneSpan or Build38. KioskOps runs alongside one; it does not replace it.
fedRampDefaults, gdprDefaults, cuiDefaults, cjisDefaults, and asdEssentialEightDefaults set encryption, validation, PII handling, and retention together.| Alternative | Strength | Gap relative to KioskOps |
|---|---|---|
| WorkManager + Room + custom crypto | Full control | You build and maintain the audit chain, retention, PII screening, data-rights APIs, and key lifecycle |
| MDM / OEM stack (Knox, Zebra, Intune, Esper, SOTI) | Device control, policy push, deployment | No application-level event durability or app-produced audit trail. KioskOps reads posture from these and does not replace them |
| Crash and telemetry SDKs (Sentry, Datadog, Firebase) | Dashboards, crash grouping, ecosystem | No local-first retention, PII rejection before upload, or framework mappings |
| Offline sync databases (Couchbase Lite, Ditto) | Bidirectional sync, conflict resolution | No audit chain or compliance posture. KioskOps is an event pipeline, not a database |
| RASP and identity vendors (OneSpan, Build38, Promon) | Runtime protection, shielding, device binding, authentication | No offline event auditing or compliance presets. Run one alongside KioskOps if the threat model includes a hostile runtime |
See Security and Compliance for the threat model.
| Area | Status |
|---|---|
| Data at rest | AES-256-GCM payloads with Android Keystore keys; SQLCipher database encryption on by default in the CUI and CJIS presets |
| Transport | TLS with certificate pinning and Certificate Transparency checks; full SCT signature verification planned |
| Device attestation | Keystore key attestation reported; Play Integrity and App Attest providers planned |
| Runtime tamper and root signals | Planned as advisory audit events. Local checks are bypassable and are not a security boundary |
| OWASP MASVS | Per-control mapping planned, with gaps listed |
| Independent penetration test | Not commissioned |
// settings.gradle.kts
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}
// app/build.gradle.kts
dependencies {
implementation("com.sarastarquant.kioskops:kiosk-ops-sdk:1.6.1")
}// settings.gradle.kts
dependencyResolutionManagement {
repositories {
maven {
url = uri("https://maven.pkg.github.com/sara-star-quant/KioskOps-SDK-Android-Enterprise")
credentials {
username = providers.gradleProperty("gpr.user").orNull ?: System.getenv("GITHUB_ACTOR")
password = providers.gradleProperty("gpr.token").orNull ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
// app/build.gradle.kts
dependencies {
implementation("com.sarastarquant.kioskops:kiosk-ops-sdk:1.6.1")
}// settings.gradle.kts
dependencyResolutionManagement {
repositories {
maven { url = uri("https://jitpack.io") }
}
}
// app/build.gradle.kts
dependencies {
implementation("com.github.sara-star-quant:KioskOps-SDK-Android-Enterprise:v1.6.1")
}Want to see it first? A runnable demo APK ships with each release; see Sample app for screenshots and a walkthrough.
class App : Application() {
override fun onCreate() {
super.onCreate()
KioskOpsSdk.init(
context = this,
configProvider = {
KioskOpsConfig(
baseUrl = "https://api.example.com/",
locationId = "STORE-001",
securityPolicy = SecurityPolicy.maximalistDefaults()
)
}
)
}
}// suspend function, call from a coroutine scope
lifecycleScope.launch {
val accepted = KioskOpsSdk.get().enqueue("button_press", """{"screen": "home"}""")
}
// or use the blocking wrapper from Java / non-coroutine code
val accepted = KioskOpsSdk.get().enqueueBlocking("button_press", """{"screen": "home"}""").get()fedRampDefaults(), gdprDefaults(), cuiDefaults(), cjisDefaults(), asdEssentialEightDefaults()
See Features for the complete list.
Microbenchmarks of the per-event hot paths (emulator sdk_gphone64_arm64, API 34;
directional, not production hardware):
| Operation | Median | Throughput |
|---|---|---|
| Anomaly scoring (per event) | 4.8 us | ~207k events/s |
| Field encryption, 3 fields (AES-256-GCM) | 46.1 us | ~22k ops/s |
| Field decryption, 3 fields | 39.2 us | ~25k ops/s |
See Benchmarks for methodology and how to reproduce.
| Requirement | Version |
|---|---|
| Android API | 33+ (Android 13) |
| Java | 17+ |
| Kotlin | 2.3+ |
| Gradle | 8.11+ |
| Document | Description |
|---|---|
| Integration Guide | Step-by-step setup |
| Architecture | System design, modules, and scope |
| Features | Full feature list and limitations |
| Benchmarks | Microbenchmark results and reproduction |
| Sample app | Runnable demo, screenshots, and integration notes |
| Security and Compliance | Threat model, transport security, key management, audit integrity |
| Compliance Mappings | NIST 800-171, CJIS, ASD, BSI, Australian Privacy Act |
| Server API Contract | OpenAPI spec for batch ingest |
| Changelog | Version history |
| Roadmap | Planned features |
| Contributing | Development setup and guidelines |
Business Source License 1.1 - Copyright (c) 2026 SARA STAR QUANT LLC
Converts to Apache License 2.0 on January 1, 2032. See LICENSE for details.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. The authors and contributors shall not be held liable for any damages arising from the use of this software. See LICENSE for full terms.
An offline-first event pipeline with a hash-chained audit trail that a server can anchor, for regulated device fleets. Devices lose network and keep recording: events are encrypted at rest, validated, PII-screened, hash-chained, and synced when connectivity returns. Android today (API 33+), iOS in preview from v1.7.0.
API reference: sara-star-quant.github.io/KioskOps-SDK-Android-Enterprise (auto-published from main and release tags).
Disclaimer: Security controls and regulatory-framework references are engineering aids only, not legal, compliance, or security advice. See docs/LEGAL.md.
KioskOps is an embedded data-layer and audit SDK. It protects the events your app produces, makes alteration of the audit record detectable, and maps its controls to compliance frameworks.
| It is | It is not |
|---|---|
| An encrypted, offline-first event queue with batch sync and backoff | A RASP or app-shielding product |
| A SHA-256 hash-chained audit trail that survives restarts | An obfuscator, packer, or anti-repackaging tool |
| Schema validation, PII detection and redaction, anomaly scoring | A replacement for Knox, Zebra, or your MDM |
| Compliance presets and control mappings (FedRAMP, NIST 800-171, CJIS, GDPR, ASD E8) | Certified; no FIPS 140-3, Common Criteria, or EMVCo claim |
| Device posture and key-attestation reporting for your server to verify | An authentication or identity product (no FIDO, no transaction signing) |
| Signed releases with build provenance and an SBOM | A guarantee of compliance; see the disclaimer above |
Apps that run in a hostile runtime, such as banking and payment apps, need a RASP and identity vendor like OneSpan or Build38. KioskOps runs alongside one; it does not replace it.
fedRampDefaults, gdprDefaults, cuiDefaults, cjisDefaults, and asdEssentialEightDefaults set encryption, validation, PII handling, and retention together.| Alternative | Strength | Gap relative to KioskOps |
|---|---|---|
| WorkManager + Room + custom crypto | Full control | You build and maintain the audit chain, retention, PII screening, data-rights APIs, and key lifecycle |
| MDM / OEM stack (Knox, Zebra, Intune, Esper, SOTI) | Device control, policy push, deployment | No application-level event durability or app-produced audit trail. KioskOps reads posture from these and does not replace them |
| Crash and telemetry SDKs (Sentry, Datadog, Firebase) | Dashboards, crash grouping, ecosystem | No local-first retention, PII rejection before upload, or framework mappings |
| Offline sync databases (Couchbase Lite, Ditto) | Bidirectional sync, conflict resolution | No audit chain or compliance posture. KioskOps is an event pipeline, not a database |
| RASP and identity vendors (OneSpan, Build38, Promon) | Runtime protection, shielding, device binding, authentication | No offline event auditing or compliance presets. Run one alongside KioskOps if the threat model includes a hostile runtime |
See Security and Compliance for the threat model.
| Area | Status |
|---|---|
| Data at rest | AES-256-GCM payloads with Android Keystore keys; SQLCipher database encryption on by default in the CUI and CJIS presets |
| Transport | TLS with certificate pinning and Certificate Transparency checks; full SCT signature verification planned |
| Device attestation | Keystore key attestation reported; Play Integrity and App Attest providers planned |
| Runtime tamper and root signals | Planned as advisory audit events. Local checks are bypassable and are not a security boundary |
| OWASP MASVS | Per-control mapping planned, with gaps listed |
| Independent penetration test | Not commissioned |
// settings.gradle.kts
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}
// app/build.gradle.kts
dependencies {
implementation("com.sarastarquant.kioskops:kiosk-ops-sdk:1.6.1")
}// settings.gradle.kts
dependencyResolutionManagement {
repositories {
maven {
url = uri("https://maven.pkg.github.com/sara-star-quant/KioskOps-SDK-Android-Enterprise")
credentials {
username = providers.gradleProperty("gpr.user").orNull ?: System.getenv("GITHUB_ACTOR")
password = providers.gradleProperty("gpr.token").orNull ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
// app/build.gradle.kts
dependencies {
implementation("com.sarastarquant.kioskops:kiosk-ops-sdk:1.6.1")
}// settings.gradle.kts
dependencyResolutionManagement {
repositories {
maven { url = uri("https://jitpack.io") }
}
}
// app/build.gradle.kts
dependencies {
implementation("com.github.sara-star-quant:KioskOps-SDK-Android-Enterprise:v1.6.1")
}Want to see it first? A runnable demo APK ships with each release; see Sample app for screenshots and a walkthrough.
class App : Application() {
override fun onCreate() {
super.onCreate()
KioskOpsSdk.init(
context = this,
configProvider = {
KioskOpsConfig(
baseUrl = "https://api.example.com/",
locationId = "STORE-001",
securityPolicy = SecurityPolicy.maximalistDefaults()
)
}
)
}
}// suspend function, call from a coroutine scope
lifecycleScope.launch {
val accepted = KioskOpsSdk.get().enqueue("button_press", """{"screen": "home"}""")
}
// or use the blocking wrapper from Java / non-coroutine code
val accepted = KioskOpsSdk.get().enqueueBlocking("button_press", """{"screen": "home"}""").get()fedRampDefaults(), gdprDefaults(), cuiDefaults(), cjisDefaults(), asdEssentialEightDefaults()
See Features for the complete list.
Microbenchmarks of the per-event hot paths (emulator sdk_gphone64_arm64, API 34;
directional, not production hardware):
| Operation | Median | Throughput |
|---|---|---|
| Anomaly scoring (per event) | 4.8 us | ~207k events/s |
| Field encryption, 3 fields (AES-256-GCM) | 46.1 us | ~22k ops/s |
| Field decryption, 3 fields | 39.2 us | ~25k ops/s |
See Benchmarks for methodology and how to reproduce.
| Requirement | Version |
|---|---|
| Android API | 33+ (Android 13) |
| Java | 17+ |
| Kotlin | 2.3+ |
| Gradle | 8.11+ |
| Document | Description |
|---|---|
| Integration Guide | Step-by-step setup |
| Architecture | System design, modules, and scope |
| Features | Full feature list and limitations |
| Benchmarks | Microbenchmark results and reproduction |
| Sample app | Runnable demo, screenshots, and integration notes |
| Security and Compliance | Threat model, transport security, key management, audit integrity |
| Compliance Mappings | NIST 800-171, CJIS, ASD, BSI, Australian Privacy Act |
| Server API Contract | OpenAPI spec for batch ingest |
| Changelog | Version history |
| Roadmap | Planned features |
| Contributing | Development setup and guidelines |
Business Source License 1.1 - Copyright (c) 2026 SARA STAR QUANT LLC
Converts to Apache License 2.0 on January 1, 2032. See LICENSE for details.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. The authors and contributors shall not be held liable for any damages arising from the use of this software. See LICENSE for full terms.