Voyz / ibeam

IBeam is an authentication and maintenance tool used for the Interactive Brokers Client Portal Web API Gateway.
Apache License 2.0
553 stars 112 forks source link

Urgent Security Concern: Unauthorized Withdrawal Attempt #218

Open patrickmuhi opened 5 days ago

patrickmuhi commented 5 days ago

At approximately 3:00 AM today, there was an unauthorized attempt to withdraw funds from my Interactive Brokers account while using iBeam as an API interface.

Details

Questions and Concerns

Request

Voyz commented 4 days ago

Hi @patrickmuhi, I'm terrified to see that this has happened to you. Thanks for reporting this back here with details.

This is the first time this has happened to an IBeam user as far as I'm aware. Hence, bear with me as I'm not familiar with proper handling of such cases. Contacting people who specialise in dealing with this kind of security breaches may be a wise action here.

I cannot find any endpoint that would allow to withdraw funds using the Client Portal Web API in the docs. This would indicate that the withdrawal was issued in a non-programmatic way, and as such is not related to IBeam and will have to be investigated with the IBKR support team.

Nevertheless, I'd recommend you do the following:

  1. Access the machine where IBeam is deployed. If remotely, SSH to the deployed instance.
  2. Access the IBeam container, eg. docker exec -it -u 0 [CONTAINER_NAME] bash
  3. Navigate to /srv/clientportal.gw/logs
  4. There you'll find log files which, among other things, should contain any requests that the Gateway has processed, along the lines of -> GET /v1/portal/sso/validate
  5. I encourage you to look through these and see if you can find the withdrawal request in any form. I'd imagine that looking for the time around the timestamp you posted should be a good starting point, although look thoroughly in case the withdrawal was requested some time before IBKR received it, processed it and sent you this email.

If the withdrawal is present and IBeam is deployed remotely, I'd recommend you start a conversation with the customer support of the cloud provider you're using. You'd want to investigate if there has been an unauthorised access - I'd imagine IP address could indicate that.

Whether it is present or not, I'd suggest contacting IBKR and discussing the problem with them.

I'm terribly sorry this has happened to you, I hope you manage to mitigate the losses. Let us know how it goes.