Distinguishing automated API scans from a BetterForms account breach

Problem

Unexpected BetterForms/FileMaker hooks or inbox records may appear to indicate that an account or server was compromised.

Diagnosis and solution

Review the request logs for source IPs, request shape, paths, timestamps, and response codes. In this case, 31 requests arrived over roughly 13 seconds and probed common paths such as .env, server settings, generic API routes, and a GraphQL endpoint. Every request was rejected with BetterForms error 1007 (unknown route), and no hooks executed or data was returned. This pattern is consistent with routine automated Internet-wide bot scanning rather than a targeted breach. After confirming that requests are refused and no sensitive files are publicly accessible, reconnecting the BetterForms application is appropriate. Also verify that no .env or similar secret-containing file is located in a publicly served directory.


Original Slack Thread

User U031U2MKZ43: So my custom monitor tool that watches my FileMaker server logs/events/access just confirmed a BetterForm call that are trying to execute hooks. I've now changed BetterForm's password, and closed BetterForm_Helper, which now stopped attacking my server, and is now gone. Can someone tell me the process of what to do on the BetterForms side? I don't want to enter my new BetterForms password in the BF App until I know the BF App is secure. As of this moment, it isn't. Can someone from support PingMe? I have all the logs and betterForms helper files before and after attachment
User U031U2MKZ43: i have done all these already before this ticket Hassan please ping me when you get this i have logs and betterforms detailed logs
User UBBJX2EHM: When you say hooks are seeing inbox records created? 

And if so, from there you can see the client type and data center too to confirm what it is. 
User UBBJX2EHM: Can you describe the shape of the calls, and an ip of them. 
User U031U2MKZ43: sorry just got back to my desk boss can i send you export of BF records
User UBBJX2EHM: The answers to above questions would be most useful at this point
User UBBJX2EHM: The helper file export will contain private information so it’s best not to ship that
User U031U2MKZ43: i've only exported the affected logs no business data is in there
User U031U2MKZ43: i put in private DM did you get them
User UBBJX2EHM: I went through the log. This is expected: it’s typical random sweeping by bots that hits every public site, not something aimed at you.
It hit the /api endpoint and asside from ssome server load harless by design.
• It’s 31 automated requests in about 13 seconds against <http://portal.westphysics.com|portal.westphysics.com>, around 3:57 AM. They try common paths like .env files, server settings and generic API routes.
• Every one was refused with BetterForms error 1007, an unknown route. Nothing ran and nothing was returned.
• The requests fake a mix of browser and search-bot identities, which is normal for these scanners.
You’re fine to put the BetterForms password back in and reconnect. For peace of mind, just make sure there’s no .env file sitting in a public folder on that server.
User UBBJX2EHM: IN SHORT
A random attent to run a graphql query on the endpoint.
User U031U2MKZ43: thank you boss doing it now and will tell you if it happens again how was able to get to my servers with BetterForm account did they have breached password?
User UK4DV7RGF: Bots hit your Klai api endpoint and then Klai contacts FMS as it does for every request. Totally normal, not a breach, and nothing you can do about it.
User UK4DV7RGF: It would be nice though if we could turn off /api if we don’t use it. Or pre filter it somehow if we do. Almost half of my inbox records on a lightly used app are probing bots. 93 calls yesterday alone.
User UBBJX2EHM: Ok let's add as a feature. 
User UBBJX2EHM: the filter for it to be useful would have to be in the cloud else it still consumes your cpu, but a toggle is easy enough
User U031U2MKZ43: okay i've just gotten breached again from BF whats going on here
User UK4DV7RGF: No breach was ever established in this thread. What is your basis for suspecting a breach? Bots probing for routine vulnerabilities is entirely normal activity and is not a breach.
User UBBJX2EHM: yeah bot scans are common and happen for all apis