Detecting credentials abuse of cloud compute services
Methods, storage systems and computer program products implement embodiments of the present invention that include identifying a first autonomous system number (ASN) for a service hosted by a networked entity, and retrieving, from a log file, an entry corresponding to an access by a networked entity to the service and including an Internet Protocol (IP) address of the networked entity and an access token authorizing access to the service. A second ASN for the IP address is identified, and the second ASN is compared to the first ASN. Finally, an alert is generated for the access upon detecting the first ASN differing from the second ASN.
1 . A method, comprising, by a processor:
detecting an access by a networked entity to a service associated with a first autonomous system number (ASN) using an access token that is assigned to entities associated with the first ASN and authorizes access to the service, the networked entity having an Internet Protocol (IP) address;
determining whether the networked entity is authorized to use the access token by:
identifying a second ASN for the IP address, and
comparing the second ASN to the first ASN, wherein if the second ASN differs from the first ASN the networked entity is not authorized to use the access token; and
generating an alert upon determining that the networked entity is not authorized to use the access token.
2 . The method according to claim 1 , and further comprising identifying a first organization associated with the first ASN, and a second organization associated with the second ASN.
3 . The method according to claim 2 , wherein the generated alert comprises a first alert upon determining that the first organization matches the second organization, wherein the generated alert comprises a second alert upon determining that the first organization does not match the second organization, and wherein the second alert indicates a greater threat than the first alert.
4 . An apparatus, comprising:
a network interface controller (NIC); and
one or more processors configured:
to detect an access by a networked entity to a service associated with a first autonomous system number (ASN) using an access token that is assigned to entities associated with the first ASN and authorizes access to the service, the networked entity having an Internet Protocol (IP) address,
to determine whether the networked entity is authorized to use the access token by:
identifying a second ASN for the IP address, and
comparing the second ASN to the first ASN, wherein if the second ASN differs from the first ASN the networked entity is not authorized to use the access token; and
to generate an alert upon determining that the networked entity is not authorized to use the access token.
5 . The apparatus according to claim 4 , wherein a given processor is further configured to identify a first organization associated with the first ASN, and a second organization associated with the second ASN.
6 . The apparatus according to claim 5 , wherein the generated alert comprises a first alert upon a given processor determining that the first organization matches the second organization, wherein the generated alert comprises a second alert upon the given processor determining that the first organization does not match the second organization, and wherein the second alert indicates a greater threat than the first alert.
7 . A computer software product, the product comprising a non-transitory computer-readable medium, in which program instructions are stored, which instructions, when read by a computer, cause the computer:
to detect an access by a networked entity to a service associated with a first autonomous system number (ASN) using an access token that is assigned to entities associated with the first ASN and authorizes access to the service, the networked entity having an Internet Protocol (IP) address,
to determine whether the networked entity is authorized to use the access token by:
identifying a second ASN for the IP address, and
comparing the second ASN to the first ASN, wherein if the second ASN differs from the first ASN the networked entity is not authorized to use the access token; and
to generate an alert upon determining that the networked entity is not authorized to use the access token.