MilesUp
51-point checklist · fixed price

Audit for Rails apps built with AI

Your Rails app was written with Cursor, Claude Code or Copilot. Before your first enterprise customer or security questionnaire, we read it against 51 checks, from authorization and payments to architecture, tests and performance.

Who it's for

  • SaaS founders facing a first security questionnaire or SOC 2
  • CTOs whose team ships daily with Cursor or Claude Code and wants an independent second opinion
  • Teams raising money, and investors or buyers checking a codebase
  • Agencies maintaining client Rails apps built with AI

A typical finding

CRITICALOrdersController#show

Orders load by id with no check on the signed-in user, so changing the id in the URL shows another customer's order.

Illustrative example. Read a full sample report

All 51 checks

Login and authorization7 checks

OWASP A01:2025, A07:2025 · API1, API5:2023 · CWE-862, CWE-639, CWE-307

  • Every action has an authorization check (Pundit, Action Policy or CanCanCan), not only a login check
  • Lookups scoped to the current user or account, so ids in URLs can't be swapped
  • Login configured: password rules, lockout, session timeout and reset tokens
  • Rate limits on login, signup, password reset and expensive endpoints
  • Admin and job dashboards (ActiveAdmin, Avo, Sidekiq Web, Mission Control) protected
  • API tokens hashed, revocable and compared in constant time
  • Action Cable channels and Turbo Stream broadcasts reach only authorized users

Input and injection5 checks

OWASP A05:2025 · API3:2023 · CWE-89, CWE-79, CWE-915, CWE-601, CWE-502

  • Strong parameters allow only intended fields, with no permit! and no role fields
  • No SQL built by string interpolation in where, order or pluck
  • No raw, html_safe or sanitize bypasses in ERB or Turbo Streams
  • Uploads validated, and private Active Storage files not public
  • No send, constantize, eval, YAML.load, redirect_to or render on raw user input

Secrets and configuration6 checks

OWASP A02:2025, A04:2025 · CWE-798, CWE-532, CWE-352

  • Master key and .env not in the repo or its history
  • Log filtering covers passwords, tokens and personal data
  • Sensitive personal fields encrypted at rest (Active Record encryption or similar)
  • force_ssl, secure cookies, CSP and host authorization on in production
  • CSRF protection on for browser controllers
  • CORS allows only the origins you need

Data and migrations7 checks

OWASP A06:2025 · CWE-362

  • Foreign keys, unique indexes and NOT NULL match model validations
  • Migrations safe on production-size tables
  • Callbacks don't hide side effects or double-send emails and charges
  • Balances, stock and counters safe under concurrent requests
  • Cached pages and fragments keyed by user or account, so no one sees another user's data
  • Account deletion removes or anonymizes personal data
  • Seeds and console can't hit production by accident

Performance5 checks

OWASP API4:2023 · CWE-400

  • No N+1 queries on key pages
  • Foreign keys and filtered columns indexed
  • Every list paginated, with no unbounded queries
  • The slowest endpoints identified from your monitoring, with the cause named
  • Puma threads, job concurrency and database pool sized to match each other

Jobs and payments6 checks

OWASP A08:2025 · API6:2023 · CWE-345

  • Background jobs safe to retry (Sidekiq, Solid Queue, GoodJob)
  • Stripe webhooks verify signatures and handle duplicate or out-of-order events
  • Subscription state comes from webhooks, not the client redirect
  • Prices, coupons, credits and quantities checked on the server against abuse
  • External API calls have timeouts and error handling
  • Emails carry no sensitive data in links, and unsubscribe works

AI-built code6 checks

OWASP A03:2025 · OWASP LLM Top 10 · CWE-1104

  • Every gem is real, the intended one and maintained, with no invented or look-alike names
  • No placeholder logic in live paths: stubbed checks, fake data, hardcoded users or TODOs
  • Safety checks not switched off to silence errors: skipped CSRF, rubocop:disable, rescue nil
  • No outdated Rails patterns copied from old examples
  • One way of doing each job, with no duplicated business rules that have drifted apart
  • AI features can't be steered into leaking data or acting beyond the user's rights, and usage is capped

Architecture and code quality4 checks

  • Business logic out of controllers and callbacks, in models or service objects
  • Rails conventions followed, with no god objects
  • Payment, email and other providers used through one place, so each can be replaced
  • Core business rules testable without going through controllers

Deploy and maintenance5 checks

OWASP A03:2025, A09:2025 · CWE-1104

  • Supported Ruby and Rails versions, and bundler-audit clean
  • CI runs tests, Brakeman and bundler-audit on every pull request
  • Tests for money, permissions and migrations that check real behavior
  • Error tracking, structured logs and a health check in place
  • Database backups exist and a restore has been tested

Tools: Brakeman, bundler-audit, RuboCop security rules, gitleaks, Semgrep and a dependency check, then manual reading. Bullet and strong_migrations too when the app can be run in an isolated environment. Every finding is confirmed by hand.

How we verify

A scanner lists patterns. We prove each check and tell you how we proved it.

  1. Threat model first

    Before the checklist, we name what is most valuable in your app, who would go after it and the paths they would try first. Those paths are reviewed first.

  2. Tools are leads, not findings

    Scanners run over the code and its full git history. Every hit is confirmed by reading the code, and false alarms are listed with the reason.

  3. A stated method for every check

    Reading the code, scanner output confirmed by hand, your written answers, or a test in an isolated environment. The report says which, check by check.

  4. No pass without evidence

    A pass cites a file and line, a setting or your answer. Anything we could not verify is reported as not checked, never as a pass.

  5. Severity by real impact

    Each rating weighs likelihood and impact in your app, not a tool's default label.

  6. Production stays untouched

    We never test production or use credentials we find. Code runs only in an isolated environment, and only for the checks that need it.

Groups are tagged with OWASP Top 10:2025, OWASP API Security Top 10:2023 and CWE references, and the enterprise checks with SOC 2 criteria. The mapping is a reference for your auditors, not a certification.

Enterprise readiness: 27 more checks

For teams selling to larger customers, preparing for SOC 2 or due diligence, or shipping every day with AI tools. Covered in the Enterprise readiness review, on top of the 51 checks above.

Enterprise access6 checks

SOC 2 CC6 · OWASP A07:2025, A09:2025

  • Single sign-on through SAML or OIDC, with SCIM or just-in-time provisioning
  • Multi-factor authentication available, and required for admins
  • Roles and permissions beyond a single admin flag
  • Audit log of sign-ins, admin actions and data exports
  • Tenant isolation holds in background jobs, search, exports and caches
  • Customers can export their data and close their account

Supply chain and CI5 checks

SOC 2 CC8 · OWASP A03:2025

  • CI actions pinned to exact versions, with secrets scoped to the jobs that need them
  • Branch protection and required reviews, with code owners on auth and billing
  • Automated dependency updates in place and acted on
  • A software bill of materials (SBOM) produced for each release
  • Licences reviewed, with no copyleft surprises such as AGPL in a hosted product

Infrastructure in the repo4 checks

SOC 2 CC6 · OWASP A02:2025

  • Containers run as non-root from minimal, pinned images
  • Infrastructure code and cloud roles grant least privilege
  • Storage buckets private, and databases not reachable from the internet
  • Secrets in a secrets manager and rotated, with no long-lived personal keys

Privacy and data4 checks

SOC 2 Privacy and Confidentiality criteria · GDPR, CCPA

  • Personal data mapped: what is stored, where, why and who can access it
  • Retention rules applied, with deletion jobs that actually run
  • Data access and deletion requests handled within legal deadlines
  • Sub-processors listed, including AI providers, with what data each receives

Resilience and operations4 checks

SOC 2 CC7, A1

  • Recovery time and data-loss targets set, and backups meet them
  • Runbooks for deploy, rollback and common incidents
  • Alerts reach a person, with a clear on-call and incident path
  • Single points of failure named, with headroom for peak traffic

AI development guardrails4 checks

SOC 2 CC8

  • Share of recent changes written with AI tools measured
  • Written rules for reviewing AI-written pull requests, and they are followed
  • CI gates (tests, security scans, type checks) block merges, not only warn
  • AI tool rules files and connected tools (MCP servers) reviewed for secrets and over-broad access

Optional add-on: an authenticated test of your staging environment, with your written authorization and an agreed scope, to confirm the most serious findings in a running system.

What you get

Every audit

  • A verdict and executive summary in plain words
  • Findings ranked by severity, each with file and line, consequence, fix and effort
  • Checklist results showing how each check was verified
  • A fixed-price fix plan, valid for 14 days

The Full Audit adds

  • A risk register: likelihood, impact and an owner for each risk
  • A 30/60/90-day remediation roadmap
  • OWASP and CWE references on every security finding
  • A walkthrough call with your team

The Enterprise readiness review adds

  • The 27 enterprise checks, mapped to SOC 2 criteria
  • A threat-model session with your team
  • Answers ready for your security questionnaires
  • A re-check of your fixes and a letter you can share with customers or investors

The letter states what we reviewed and verified as fixed. It is not a certification.

See these in the sample report

Pricing

Full Audit

5 business days. All 51 checks, an architecture and code-quality review, a performance pass, a deploy review, a written report with a risk register and a 30/60/90-day roadmap, a fixed-price fix plan and a 45-minute walkthrough call.

$2,500

Quick Check

48 hours. Automated scans plus a manual review of the 12 highest-risk checks: login, authorization and mass assignment. Top 10 findings.

Founding rate $450 for the first three Quick Checks. Fee credited toward a Full Audit booked within 30 days.

$900

Monthly review

Each month's merged, AI-written changes checked against the checklist.

$600per month

Enterprise readiness review

About 2 weeks. All 51 checks plus 27 enterprise checks, a threat-model session with your team, a risk register mapped to OWASP, CWE and SOC 2 criteria, answers ready for your security questionnaires, a 30/60/90-day roadmap, and a re-check of fixes made within 60 days, with a letter you can share.

Fixed quoteafter a scoping call

Quick Check guarantee: if it finds nothing worth fixing, you get your money back.

Need the fixes too? The Audit + Fix Sprint starts at $6,000 and includes the Full Audit.

Who does the work

Every audit is led by our founder, Magesh. 15+ years in software as a developer, architect, startup founder and trainer. Trained 200+ developers, and a speaker at EuRuKo 2024 and RubyConf India 2023.

About MilesUp

How your code is handled

  • NDA before access; read-only access is enough
  • No third-party AI tools on your code without your written OK
  • Code deleted within 30 days of delivery, confirmed in writing
  • Findings never published or shared without your permission

Questions about Rails audits

We have a SOC 2 audit or a security questionnaire coming. Does this help?

Yes. The report gives you specific, evidence-backed answers for the application-security questions, and a list of what to fix first. It is not a SOC 2 audit itself, and we will tell you if you also need a penetration test.

Which Rails versions do you cover?

Rails 6 and later, including Hotwire, Turbo, Sidekiq, Solid Queue and GoodJob. Older apps get an upgrade path in the report.

Can you also do the fixes?

Yes. The Full Audit includes a fixed-price fix plan. The Audit + Fix Sprint covers the audit, the fixes with tests, and a re-audit.

Do you map findings to OWASP, CWE or SOC 2?

Yes. Every group of checks is tagged with OWASP Top 10:2025, OWASP API Security Top 10:2023 or MASVS for mobile, and CWE references, and the enterprise checks with SOC 2 criteria. The mapping helps your auditors and customers follow the report. It is not a certification.

Do you test the running app?

The audits read code, configuration and your release build. For the Enterprise readiness review and due diligence we can add an authenticated test of your staging environment, with your written authorization and an agreed scope. We never test production.

Can we show the result to customers or investors?

Yes. After you fix the findings, we re-check them and write a letter stating what we reviewed and what we verified as fixed. It is an independent review, not a certification or a guarantee.

More answers in the main FAQ.

Know what your AI wrote before someone else finds out

A 20-minute call tells you which audit fits, the fixed price and the delivery date.