{"id":1153,"date":"2026-11-23T11:03:59","date_gmt":"2026-11-23T11:03:59","guid":{"rendered":"https:\/\/zamacore.com\/blog\/?p=1153"},"modified":"2026-11-23T11:03:59","modified_gmt":"2026-11-23T11:03:59","slug":"api-security-services-in-kenya","status":"publish","type":"post","link":"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/","title":{"rendered":"API Security Services in Kenya: Every Key Accounted For"},"content":{"rendered":"<p><a href=\"https:\/\/zamacore.com\/blog\/e-commerce-development-in-kenya\/zamacore_-built-for-whats-next\/\" rel=\"attachment wp-att-978\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-978\" src=\"https:\/\/zamacore.com\/blog\/wp-content\/uploads\/2026\/10\/Zamacore_-Built-for-Whats-Next.png\" alt=\"API Security Services in Kenya\" width=\"1254\" height=\"1254\" srcset=\"https:\/\/zamacore.com\/blog\/wp-content\/uploads\/2026\/10\/Zamacore_-Built-for-Whats-Next.png 1254w, https:\/\/zamacore.com\/blog\/wp-content\/uploads\/2026\/10\/Zamacore_-Built-for-Whats-Next-300x300.png 300w, https:\/\/zamacore.com\/blog\/wp-content\/uploads\/2026\/10\/Zamacore_-Built-for-Whats-Next-1024x1024.png 1024w, https:\/\/zamacore.com\/blog\/wp-content\/uploads\/2026\/10\/Zamacore_-Built-for-Whats-Next-150x150.png 150w, https:\/\/zamacore.com\/blog\/wp-content\/uploads\/2026\/10\/Zamacore_-Built-for-Whats-Next-768x768.png 768w\" sizes=\"auto, (max-width: 1254px) 100vw, 1254px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/zamacore.com\">api security services in Kenya<\/a> usually begin with a question nobody can answer: where are all the keys?<\/p>\n<p>A payments team knows its Daraja credentials. The mobile app team knows its build secrets. Nobody knows about the integration a former contractor built for a partner in 2022.<\/p>\n<p>That missing key can move money, read customer records and call every endpoint the partner was once allowed to use.<\/p>\n<p><a href=\"https:\/\/zama.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> starts with an inventory, because a key that nobody owns is a key nobody rotates.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Every_Integration_Starts_With_a_Key_Somewhere\" >Every Integration Starts With a Key Somewhere<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Key_Rotation_Without_Breaking_the_Night_Shift\" >Key Rotation Without Breaking the Night Shift<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Scopes_Are_the_Smallest_Useful_Permission\" >Scopes Are the Smallest Useful Permission<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Rate_Limits_as_a_Security_Control_Not_a_Fairness_Policy\" >Rate Limits as a Security Control, Not a Fairness Policy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Logging_Every_Call_With_a_Request_Identity\" >Logging Every Call With a Request Identity<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#M-PESA_Callbacks_and_the_Spoofing_Window\" >M-PESA Callbacks and the Spoofing Window<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Third-Party_Partners_and_the_Keys_They_Share\" >Third-Party Partners and the Keys They Share<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Secrets_Belong_in_a_Vault_Not_a_Spreadsheet\" >Secrets Belong in a Vault, Not a Spreadsheet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Least_Privilege_for_Service_Accounts\" >Least Privilege for Service Accounts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Penetration_Testing_an_API_You_Already_Trust\" >Penetration Testing an API You Already Trust<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Incident_Response_The_First_Sixty_Minutes\" >Incident Response: The First Sixty Minutes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Revoking_Access_When_a_Staff_Member_Leaves\" >Revoking Access When a Staff Member Leaves<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Sandbox_Staging_and_Production_Keys_Must_Never_Meet\" >Sandbox, Staging and Production Keys Must Never Meet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Webhook_Signatures_and_Replay_Attacks\" >Webhook Signatures and Replay Attacks<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Mobile_Apps_Reverse_Engineering_and_Hardcoded_Keys\" >Mobile Apps, Reverse Engineering and Hardcoded Keys<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#What_an_API_Security_Review_Produces\" >What an API Security Review Produces<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#The_Partner_Onboarding_Checklist\" >The Partner Onboarding Checklist<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/zamacore.com\/blog\/api-security-services-in-kenya\/#Measuring_Exposure_After_the_Fix\" >Measuring Exposure After the Fix<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Every_Integration_Starts_With_a_Key_Somewhere\"><\/span>Every Integration Starts With a Key Somewhere<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Most organisations discover the true size of their key estate when one appears in a public repository or a support ticket.<\/p>\n<p>The inventory should record service name, owner, environment, scope, creation date and last rotation for every credential.<\/p>\n<p><a href=\"https:\/\/dexa.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should treat an API key as an identity rather than a password. Anything with an identity needs a named owner.<\/p>\n<p>Keys live in mobile apps, spreadsheets, CI pipelines, Postman collections and a developer&#8217;s notes application.<\/p>\n<p>The register must record where each key is used, so rotation does not break an unknown integration at two in the morning.<\/p>\n<p>A key with no owner is a key nobody will defend in a review, and nobody will revoke when the project dies.<\/p>\n<p>Count integrations before counting keys, because one integration may hold three credentials for three environments.<\/p>\n<p><a href=\"https:\/\/pawa.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should reconcile monthly: keys in the vault against keys observed in live traffic.<\/p>\n<p>Traffic logs reveal shadow keys the inventory never captured, including those belonging to old app versions.<\/p>\n<p>Retirement belongs in the lifecycle too. A key no application uses should be revoked, not archived for sentiment.<\/p>\n<p><a href=\"https:\/\/pms.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should present that list to the security committee every quarter, with the additions and the removals.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Key_Rotation_Without_Breaking_the_Night_Shift\"><\/span>Key Rotation Without Breaking the Night Shift<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Rotation is simple in theory: issue a new key, deploy it, revoke the old one.<\/p>\n<p>In practice the old key sits inside an app on 4,000 phones, and the update rolls out over six weeks.<\/p>\n<p><a href=\"https:\/\/estateadmin.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should support overlapping validity, so two keys work during a defined window.<\/p>\n<p>A 30-day overlap is generous for server-to-server calls and tight for mobile apps with slow upgrade rates.<\/p>\n<p>Rotation should be scheduled and rehearsed, not triggered only by an incident at midnight.<\/p>\n<p><a href=\"https:\/\/churchesadmin.com\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should track which systems have adopted the new key and report the stragglers by name.<\/p>\n<p>Emergency rotation needs its own runbook: who issues, who deploys, who confirms traffic on the new credential.<\/p>\n<p>Revoking before confirming live traffic is how a routine rotation becomes a customer-facing outage.<\/p>\n<p>Record the rotation event with the actor, the time and the reason, because auditors ask and memory fails.<\/p>\n<p><a href=\"https:\/\/vega.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should alert when a key passes its maximum age, not when it expires in production.<\/p>\n<p>Keys shared with partners need a coordinated calendar, since the other side rotates on its own schedule and its own holidays.<\/p>\n<p>The aim is boring rotation, performed on a Tuesday morning, with no customer noticing and no engineer heroics.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Scopes_Are_the_Smallest_Useful_Permission\"><\/span>Scopes Are the Smallest Useful Permission<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A scope is a promise that a key can do one thing and not another.<\/p>\n<p>Many gateways offer a single scope called full access, which is the same as offering no scope at all.<\/p>\n<p><a href=\"https:\/\/dereva.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should define scopes by business action: read balance, initiate payment, read transaction, issue refund.<\/p>\n<p>A reconciliation service needs read access and nothing else, however convenient write access might seem.<\/p>\n<p>A partner that sends delivery notifications needs write access to one endpoint, not the customer table.<\/p>\n<p>Reducing scope turns a stolen key from a breach into an inconvenience with a support ticket.<\/p>\n<p>Test the scope rather than trusting it. Attempt the forbidden call and confirm a 403, not a 200 with an empty body.<\/p>\n<p><a href=\"https:\/\/jaat.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should map every scope to a role and every role to a named person or system.<\/p>\n<p>Legacy integrations often demand broad scopes because the original developer was in a hurry three years ago.<\/p>\n<p>Split those integrations gradually, one endpoint at a time, with a rollback path if a hidden dependency appears.<\/p>\n<p>Unused scopes deserve a report of their own, because a permission nobody exercises is pure risk.<\/p>\n<p>The smallest useful permission is a moving target, reviewed whenever the integration or the business changes.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Rate_Limits_as_a_Security_Control_Not_a_Fairness_Policy\"><\/span>Rate Limits as a Security Control, Not a Fairness Policy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Rate limits usually appear to protect a server from load. They also protect it from guessing.<\/p>\n<p>An endpoint that allows 10,000 attempts an hour is an invitation to enumerate customer records politely.<\/p>\n<p><a href=\"https:\/\/wito.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should set limits per key, per IP and per endpoint, with different thresholds for each.<\/p>\n<p>Login and OTP endpoints need far tighter limits than a monthly reporting endpoint.<\/p>\n<p>A limit without a response plan is a number in a configuration file and a false sense of safety.<\/p>\n<p><a href=\"https:\/\/awasam.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should return a clear 429 with a retry window and log the breach against the key.<\/p>\n<p>Burst limits catch scripts. Sustained limits catch slow, patient scraping by someone with time and a list.<\/p>\n<p>Partners will request exemptions, and every exemption should carry an expiry date and a review.<\/p>\n<p><a href=\"https:\/\/saseni.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should alert when a key reaches 80 percent of its limit repeatedly, because that is either a bug or an attack.<\/p>\n<p>Limits also protect the downstream: M-PESA, the SMS gateway and the bank each have their own ceilings.<\/p>\n<p>A queue that retries without backoff turns a small outage into a self-inflicted flood.<\/p>\n<p>Exercise the limits during load testing, so the first real breach is not also the first test.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Logging_Every_Call_With_a_Request_Identity\"><\/span>Logging Every Call With a Request Identity<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A log line that says 401 unauthorized is a fact without a story.<\/p>\n<p>Useful logs carry a request ID, a key identifier, a route, a status, a latency and a timestamp.<\/p>\n<p><a href=\"https:\/\/prim.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should never log the secret itself, only a fingerprint or the last four characters.<\/p>\n<p>The request ID should travel from the gateway to the application and back, so one search finds the whole path.<\/p>\n<p>Without it, an incident review becomes a debate between teams holding different timestamps and different memories.<\/p>\n<p><a href=\"https:\/\/rentaldesk.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should retain logs long enough to investigate a month-old complaint and protect them from deletion.<\/p>\n<p>Personal data in logs needs masking. A phone number in a URL is a data protection problem, not a debugging convenience.<\/p>\n<p>Access to logs is itself a permission, because logs reveal customer behaviour in detail.<\/p>\n<p><a href=\"https:\/\/fama.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should alert on patterns: a spike in 403s, a new user agent, a key used from an unfamiliar country.<\/p>\n<p>Centralise logs from the gateway, the application and the callback handler in one searchable place.<\/p>\n<p>A dashboard nobody watches is decoration. Route the alerts to a person with a rota and a phone.<\/p>\n<p>Review the noisiest alerts each quarter and fix the causes rather than muting the channel.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"M-PESA_Callbacks_and_the_Spoofing_Window\"><\/span>M-PESA Callbacks and the Spoofing Window<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>An M-PESA callback is an unauthenticated HTTP request until the receiver proves otherwise.<\/p>\n<p>Anyone who learns the callback URL can post a fake confirmation and mark an unpaid order as settled.<\/p>\n<p><a href=\"https:\/\/spacekits.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should verify the source: published IP ranges, TLS and a payload that matches the expected structure.<\/p>\n<p>Better still, reconcile every callback against a transaction status query before releasing goods or sending a receipt.<\/p>\n<p>A callback that arrives before the customer has answered the STK prompt deserves suspicion and a second look.<\/p>\n<p><a href=\"https:\/\/zamacore.com\">api security services in Kenya<\/a> should validate the amount, shortcode, account reference and receipt number against the original request.<\/p>\n<p>Store the raw callback body and headers, because a dispute needs the original message rather than a summary written later.<\/p>\n<p>Idempotency matters here. The same confirmation may arrive twice, and the second must not credit the account again.<\/p>\n<p><a href=\"https:\/\/mystayorbit.com\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should reject callbacks for transactions it never initiated and alert on the attempt.<\/p>\n<p>Test the negative path: post a forged callback to staging and confirm the system refuses it.<\/p>\n<p>A confirmation URL that appears in a public repository is a standing invitation to every curious visitor.<\/p>\n<p>After any leak, rotate the callback path or secret and check the logs for earlier abuse.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Third-Party_Partners_and_the_Keys_They_Share\"><\/span>Third-Party Partners and the Keys They Share<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Every partner holding a key is an extension of the security perimeter, whether the contract admits it or not.<\/p>\n<p>A reseller with production access can leak more data than a careless employee and with better paperwork.<\/p>\n<p><a href=\"https:\/\/dexa.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should issue a separate key per partner, never a shared key with a friendly name.<\/p>\n<p>Separate keys make revocation surgical and attribution possible when something goes wrong.<\/p>\n<p>The partner&#8217;s scope should match the contract, and the contract should describe the scope in words both sides understand.<\/p>\n<p><a href=\"https:\/\/zama.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should require the partner to rotate on a schedule and notify within 24 hours of a suspected compromise.<\/p>\n<p>Onboarding needs a technical contact, an escalation number and an agreed traffic profile.<\/p>\n<p><a href=\"https:\/\/pawa.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should monitor partner traffic for volume anomalies and endpoints outside the agreed set.<\/p>\n<p>A partner that suddenly reads the full customer table at 3 am is either migrating or exfiltrating.<\/p>\n<p>Offboarding deserves the same rigour: revoke, confirm, record the date and the person who approved it.<\/p>\n<p>A partner register should carry contract dates, key identifiers and the data categories shared.<\/p>\n<p>When a regulator asks who received personal data, that register is the answer and the delay is the problem.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Secrets_Belong_in_a_Vault_Not_a_Spreadsheet\"><\/span>Secrets Belong in a Vault, Not a Spreadsheet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A spreadsheet named API keys final v3 is the most common secrets store in the region.<\/p>\n<p>It is also the most copied file on any shared drive, and the easiest to attach to the wrong email.<\/p>\n<p><a href=\"https:\/\/pms.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should move secrets into a managed vault with access control, audit and versioning.<\/p>\n<p>Environment variables are better than source code, but they leak through crash dumps and verbose debug pages.<\/p>\n<p>A vault issues short-lived credentials, so a stolen value expires before it becomes useful.<\/p>\n<p><a href=\"https:\/\/estateadmin.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should separate secrets by environment and by application, with no shared master key.<\/p>\n<p>Developers need a way to work locally without copying production secrets onto a laptop.<\/p>\n<p>Local development needs a sealed configuration, and policy should forbid production data on personal devices.<\/p>\n<p>Scan repositories and build logs for key patterns, because the leak usually happens before the policy does.<\/p>\n<p>Anything a scan finds should be rotated within hours, not at the next quarter.<\/p>\n<p>Secrets embedded in mobile apps cannot be protected, so treat every shipped value as public.<\/p>\n<p>Document the vault&#8217;s break-glass process, because a vault nobody can open is an outage with a padlock.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Least_Privilege_for_Service_Accounts\"><\/span>Least Privilege for Service Accounts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A service account is a user that never sleeps, never takes leave and never reads the security policy.<\/p>\n<p>It is also the account most likely to hold permissions granted during a rushed integration on a Friday.<\/p>\n<p><a href=\"https:\/\/churchesadmin.com\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should give each service its own identity, with a name that says what it does.<\/p>\n<p>Shared service accounts destroy attribution, and nobody can say which system deleted the record.<\/p>\n<p>The account should reach only the endpoints and tables it needs, and only from known networks.<\/p>\n<p><a href=\"https:\/\/vega.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should review service permissions every six months against observed usage.<\/p>\n<p>A billing service that can also read the customer table has more rights than its job requires.<\/p>\n<p>Database roles deserve the same treatment, with read-only accounts where read-only is sufficient.<\/p>\n<p>Dormant service accounts should be removed, especially those created for a pilot that ended two years ago.<\/p>\n<p>Privilege creep is gradual. Each release adds a permission and nobody removes one.<\/p>\n<p><a href=\"https:\/\/dereva.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should compare granted permissions with actual calls and report the difference to the owner.<\/p>\n<p>Least privilege is not a project with an end date. It is a habit enforced at every deployment.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Penetration_Testing_an_API_You_Already_Trust\"><\/span>Penetration Testing an API You Already Trust<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A penetration test is not a scan, and a scan is not a test.<\/p>\n<p>A scan finds known weaknesses. A test asks whether an attacker can move from one endpoint to another with the access they already have.<\/p>\n<p><a href=\"https:\/\/jaat.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should scope the work around business impact: payments, customer data and administrative functions.<\/p>\n<p>The tester needs credentials for at least two roles, so privilege boundaries can be attacked properly.<\/p>\n<p>Test the boring paths: object identifiers in URLs, pagination limits, export endpoints and error messages.<\/p>\n<p><a href=\"https:\/\/wito.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should include the mobile app, because the API is only as private as its weakest client.<\/p>\n<p>A useful report describes the exploit, the evidence, the business impact and the fix in that order.<\/p>\n<p>Every high finding needs a retest, not a written promise that it was fixed.<\/p>\n<p>Testing once a year is a baseline. Testing after a major release is closer to the real risk.<\/p>\n<p>The vendor&#8217;s own developers should not be the only people who test their work, however capable they are.<\/p>\n<p><a href=\"https:\/\/awasam.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should keep the report confidential and track remediation to closure in the risk register.<\/p>\n<p>A clean report after a shallow test is worse than an honest report with findings and dates.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Incident_Response_The_First_Sixty_Minutes\"><\/span>Incident Response: The First Sixty Minutes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The first hour after a key leak decides whether the incident becomes a story about a control or a story about a breach.<\/p>\n<p>Someone must be allowed to revoke a production key without convening a committee.<\/p>\n<p><a href=\"https:\/\/saseni.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should name that person, their deputy and the number to call at night.<\/p>\n<p>The runbook should list the steps in order: contain, rotate, assess, notify, remediate and review.<\/p>\n<p>Containment first means revoking the key or blocking the route, even before the cause is understood.<\/p>\n<p><a href=\"https:\/\/prim.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should preserve logs and the affected host before rebuilding, or the investigation starts blind.<\/p>\n<p>Customer notification timelines are legal obligations, so involve counsel early rather than at the press release.<\/p>\n<p>Pre-draft the holding statement, the regulator notification and the partner briefing before they are needed.<\/p>\n<p>A tabletop exercise once a year exposes the gaps in phone numbers, decision rights and contact lists.<\/p>\n<p>The review after an incident should produce dated actions with named owners, not a document with recommendations.<\/p>\n<p><a href=\"https:\/\/rentaldesk.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should test whether the fixed control works by repeating the attack that succeeded.<\/p>\n<p>Speed comes from practice, not from a thicker binder or a longer distribution list.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Revoking_Access_When_a_Staff_Member_Leaves\"><\/span>Revoking Access When a Staff Member Leaves<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A departing engineer may hold 14 keys, three administrative accounts and a personal token that never expires.<\/p>\n<p>The exit checklist usually covers the laptop and the badge, not the API credentials and the partner logins.<\/p>\n<p><a href=\"https:\/\/fama.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should link the human resources exit process to the key inventory automatically.<\/p>\n<p>Personal tokens are the hardest to find, because they were created for convenience and never documented.<\/p>\n<p>Search for keys issued to the individual, not only the keys they formally owned.<\/p>\n<p>Shared credentials the person knew must be rotated, not merely reassigned to a colleague.<\/p>\n<p>Contractors need an end date on every credential, so expiry happens without anyone remembering.<\/p>\n<p><a href=\"https:\/\/spacekits.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should revoke on the last working day and confirm that no traffic arrives afterwards.<\/p>\n<p>A graceful exit sometimes includes a short consultancy period, which should use a time-limited key with a narrow scope.<\/p>\n<p>Logs should show who revoked what, when, and on whose instruction.<\/p>\n<p>A quarterly comparison of active staff against active credentials catches the ones the exit form missed.<\/p>\n<p>The gap between payroll and the API is exactly where orphaned access lives and waits.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Sandbox_Staging_and_Production_Keys_Must_Never_Meet\"><\/span>Sandbox, Staging and Production Keys Must Never Meet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Test keys in production are a common shortcut and a quiet disaster.<\/p>\n<p>A sandbox key that reaches live data turns a demonstration into a data breach with a familiar cause.<\/p>\n<p>Separate environments by network, by database and by credential, not just by a URL prefix.<\/p>\n<p>Staging should hold anonymised data, because a copy of production is also a copy of the risk.<\/p>\n<p><a href=\"https:\/\/zamacore.com\">api security services in Kenya<\/a> should block production credentials from developer machines at the network layer.<\/p>\n<p>Configuration should fail closed when an environment variable is missing, not fall back to a default.<\/p>\n<p>A fallback key in code is a key that ships to every customer and appears in every crash report.<\/p>\n<p><a href=\"https:\/\/mystayorbit.com\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should label every key with its environment, so a reviewer can see the mistake immediately.<\/p>\n<p>Deployment pipelines should refuse to promote a build that references a sandbox host.<\/p>\n<p>Audit for cross-environment calls monthly and treat each one as an incident until it is proven harmless.<\/p>\n<p>The convenience of one key for every environment is paid for at the worst possible moment, usually by the customer.<\/p>\n<p>Webhook endpoints are often built in a hurry, because a partner needed them before a launch.<\/p>\n<p>A receiver that returns 200 to everything looks cooperative and hides every failure.<\/p>\n<p>Return a specific status instead: 400 for a malformed body, 401 for a bad signature, 409 for a duplicate event.<\/p>\n<p>The partner&#8217;s retry logic depends on those codes, and vague responses produce duplicate deliveries.<\/p>\n<p>Queue the event before processing it, so a crash does not lose the notification.<\/p>\n<p>Process asynchronously where the partner allows it, and acknowledge inside the timeout.<\/p>\n<p>Log the event ID, the partner name, the signature result and the processing outcome.<\/p>\n<p>Replay is not only an attacker&#8217;s tactic. A partner outage can deliver a week of events in one afternoon.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Webhook_Signatures_and_Replay_Attacks\"><\/span>Webhook Signatures and Replay Attacks<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A webhook is an API call in the other direction, and it deserves the same suspicion as an inbound request.<\/p>\n<p>Without a signature, the receiver cannot distinguish a genuine event from a crafted one.<\/p>\n<p><a href=\"https:\/\/dexa.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should require an HMAC signature over the raw body, with a timestamp and a key identifier.<\/p>\n<p>Verify the signature before parsing the JSON, using the raw bytes rather than a re-serialised object.<\/p>\n<p>A timestamp older than five minutes should be rejected, which limits the replay window without blocking normal retries.<\/p>\n<p><a href=\"https:\/\/zama.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should store seen event IDs for the window and reject duplicates.<\/p>\n<p>Signature secrets need rotation with overlap, exactly like API keys, and the old secret must expire.<\/p>\n<p>Log verification failures with the source IP and the event type, and review them weekly.<\/p>\n<p>A failed signature is not a customer error. It is either a bug or an attack, and both deserve a look.<\/p>\n<p>Test with a tampered body, an old timestamp and a replayed payload before trusting the scheme.<\/p>\n<p><a href=\"https:\/\/pawa.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should document the scheme for partners, including exact header names and encoding.<\/p>\n<p>Ambiguity in the specification becomes a bypass in the implementation.<\/p>\n<p>A mobile release is a publication, and a publication cannot be recalled from every device.<\/p>\n<p>Users delay updates, ignore prompts and keep old phones in service long after support ends.<\/p>\n<p>That reality should shape the API contract, because the server must tolerate several client generations at once.<\/p>\n<p>Version the endpoints rather than changing them silently, and keep the old version alive for a stated period.<\/p>\n<p>When a version is retired, return a clear error with an upgrade path instead of a mysterious 404.<\/p>\n<p>Track adoption by version, so the decision to retire rests on evidence rather than impatience.<\/p>\n<p>Every version kept alive is another surface to test, which makes the retirement date a security decision too.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Mobile_Apps_Reverse_Engineering_and_Hardcoded_Keys\"><\/span>Mobile Apps, Reverse Engineering and Hardcoded Keys<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>An app installed on a phone is a copy of the client, and any copy can be opened.<\/p>\n<p>Strings, endpoints and keys can be extracted in an afternoon with free tools and a laptop.<\/p>\n<p><a href=\"https:\/\/pms.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should assume every value shipped in the app is public, including obfuscated values.<\/p>\n<p>A hardcoded key is not a secret. It is a published credential with a delay before publication.<\/p>\n<p>The app should authenticate the user rather than the binary, and receive short-lived tokens after login.<\/p>\n<p>Where the risk justifies the friction, bind tokens to the device and to the session.<\/p>\n<p>Certificate pinning raises the cost of interception but does not make the client trustworthy.<\/p>\n<p><a href=\"https:\/\/estateadmin.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should test the release build, because debug settings leak more than production settings.<\/p>\n<p>Old app versions stay installed for years, so the API must support revocation by version.<\/p>\n<p>Traffic from retired app versions should be monitored, then blocked once the numbers justify it.<\/p>\n<p>A minimum-version policy is a security control, and it needs a forced update path that users can complete.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_an_API_Security_Review_Produces\"><\/span>What an API Security Review Produces<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A review that ends with a slide deck has produced a mood rather than a control.<\/p>\n<p>The output should be a register: finding, evidence, affected endpoint, severity, owner and date.<\/p>\n<p><a href=\"https:\/\/churchesadmin.com\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should rank findings by business impact rather than by the elegance of the exploit.<\/p>\n<p>Each finding needs a test that proves the fix, so closure is verifiable by someone other than the author.<\/p>\n<p>The key inventory, the scope matrix and the partner register belong in the appendices.<\/p>\n<p>A review should also record what was not tested and why, because silence is not assurance.<\/p>\n<p><a href=\"https:\/\/vega.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should map findings to a recognised framework so the board can compare one year with the next.<\/p>\n<p>Retest dates belong in the same register, with a named person accountable for each one.<\/p>\n<p><a href=\"https:\/\/dereva.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should report trends: repeat findings, ageing high-severity items and exceptions granted.<\/p>\n<p>A finding open for 180 days is a decision, and the register should say who decided and on what basis.<\/p>\n<p>Engineering needs a fix order that respects dependencies, not a severity score alone.<\/p>\n<p>The final page should state the residual risk in language a finance director can act on.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"The_Partner_Onboarding_Checklist\"><\/span>The Partner Onboarding Checklist<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Most partner integrations are built by two engineers and a WhatsApp group with a deadline.<\/p>\n<p>The checklist should make the security work explicit before the first key is issued, not after the first incident.<\/p>\n<p>Collect the legal entity, the data categories, the purpose and the retention period before anything else.<\/p>\n<p>Ask for the partner&#8217;s security contact and its incident notification commitment in writing.<\/p>\n<p><a href=\"https:\/\/jaat.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should define the endpoints, scopes, rate limits and expected volumes before development starts.<\/p>\n<p>Test in sandbox with the partner&#8217;s actual client, not a curl script written by one side.<\/p>\n<p><a href=\"https:\/\/wito.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should agree the signature scheme, the retry policy and the idempotency rules.<\/p>\n<p>Record the go-live date, the key identifiers and the person who approved the access.<\/p>\n<p><a href=\"https:\/\/awasam.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should schedule the first review at 30 days, when real traffic exposes the assumptions.<\/p>\n<p>A partner that cannot meet the checklist is a partner that will call at midnight.<\/p>\n<p>The signed checklist belongs with the contract, because memory is not evidence.<\/p>\n<p>The checklist is also a useful refusal tool, since a clear standard makes an unsafe request easier to decline.<\/p>\n<p>A monthly one-page report is more useful than a quarterly deck nobody reads.<\/p>\n<p>Show the four exposure numbers with last month&#8217;s value beside each one.<\/p>\n<p>Note every exception granted, who granted it and when it expires.<\/p>\n<p>Name the two decisions the committee must make this month, not twelve recommendations.<\/p>\n<p>Record the date of the next penetration test and the last successful release drill.<\/p>\n<p>A dashboard that only goes up is a dashboard people stop believing.<\/p>\n<p>Where a number improves, say which change caused it, so the gain can be repeated.<\/p>\n<p>Where it worsens, say what will be different by the next report.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Measuring_Exposure_After_the_Fix\"><\/span>Measuring Exposure After the Fix<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Closing a finding is not the same as reducing exposure.<\/p>\n<p>The measure is how many keys are unrotated, over-scoped, unowned or invisible to the inventory.<\/p>\n<p>Four numbers deserve a monthly report: unrotated, over-scoped, unowned and invisible keys.<\/p>\n<p>Mean time to revoke a leaked key is a better metric than the number of scans performed.<\/p>\n<p><a href=\"https:\/\/saseni.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should track the share of callbacks verified and the share of endpoints with rate limits.<\/p>\n<p>Coverage matters. An inventory that knows 70 percent of keys is a 30 percent blind spot with a dashboard.<\/p>\n<p>Sampling production traffic each quarter finds the keys the register missed.<\/p>\n<p>The board needs one page: exposure, trend, decisions required and the date of the next test.<\/p>\n<p><a href=\"https:\/\/prim.co.ke\" target=\"_blank\" rel=\"noopener\">api security services in Kenya<\/a> should set a target for key age and hold teams to it, with an exception process.<\/p>\n<p>A security programme that cannot show a falling number will lose its budget at the next cycle.<\/p>\n<p>Publishing the metrics internally changes behaviour faster than any policy memo.<\/p>\n<p>Exposure falls when the boring work is measured, not when the annual report is written.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>api security services in Kenya usually begin with a question nobody can answer: where are all the keys? A payments team knows its Daraja credentials. The&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[293,3,11,287,10,9],"tags":[],"class_list":["post-1153","post","type-post","status-publish","format-standard","hentry","category-academic-support","category-ai-automation","category-business-systems","category-product-guides","category-support-service","category-website-development"],"_links":{"self":[{"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/posts\/1153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/comments?post=1153"}],"version-history":[{"count":1,"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/posts\/1153\/revisions"}],"predecessor-version":[{"id":1156,"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/posts\/1153\/revisions\/1156"}],"wp:attachment":[{"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/media?parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/categories?post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zamacore.com\/blog\/wp-json\/wp\/v2\/tags?post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}