Box Events Integration
editBox Events Integration
editVersion |
2.11.0 (View all) |
Compatible Kibana version(s) |
8.13.0 or higher |
Supported Serverless project types |
Security |
Subscription level |
Basic |
Level of support |
Elastic |
The Box Events integration allows you to monitor Box. Box is a secure cloud storage and collaboration service that allows businesses and individuals to easily share files.
Use the Box Events integration to ingest the activity logs which are generated each time files are uploaded, accessed, or modified in Box, enabling you to monitor data movement to the cloud. If you have opted-in to receive additional events, the Box Events integration will ingest context-rich alerts on potential threats, such as compromised accounts and data theft, based on anomalous user behavior. Combining this data with other events can lead to the detection of data exfiltration attacks.
Then visualize that data in Kibana, create alerts to notify you if something goes wrong, and reference box_events.events
when troubleshooting an issue.
For example, if you wanted to set up notifications for incoming Box Shield alerts you could verify that this data is being ingested from the Box Shield Alerts
Dashboard. Then, go to Alerts and Insights / Rules and Connectors
in the sidebar and set up a Rule using an Elasticsearch Query against index *box*alert*
with time field @timestamp
and DSL
{ "query":{ "match" : { "event.kind": "alert" } } }
to match incoming box alerts during your desired timeframe and notify you using your preferred connector.
Compatibility
editThe Box Web Application does not feature version numbers, see this Community Post. This integration was configured and tested against Box in the second quarter of 2022.
Box Events
editThe Box events API enables subscribing to live events across the enterprise or for a particular user, or querying historical events across the enterprise.
The API Returns up to a year of past events for configurable to the admin
user (default) or for the entire enterprise.
Elastic Integration for Box Events Settings
editThe Elastic Integration for Box Events requires the following Authentication Settings in order to connect to the Target service:
- Client ID
- Client Secret
- Box Subject ID
- Box Subject Type
- Grant Type
The Elastic Integration for Box Events requires the following Data Stream Settings to configure the request to the Target API:
- Interval
- Stream Type
- Preserve Original Event
Here is a brief guide to help you generate these settings
Target Repository Authentication Settings Prerequisites
editThe Elastic Integration for Box Events connects using OAuth 2.0 to interact with a Box Custom App. As prerequisites you will need to:
-
Enable
MFA/2FA
on your admin account by following the instructions in MFA Setup on Box Support -
Configure a
Box Custom Application using Server Authentication ` + `(with Client Credentials Grant)
. A suggested workflow is provided below, see Setup with OAuth 2.0 for additional information.
Authorized User
editIt is important to login to the Box Developer Console as an admin
and not co-admin
.
A suggested workflow is as follows:
editCreate a Custom Application using Server Authentication (with Client Credentials Grant) authentication
edit- Open the Box Developer Console
-
Click on
Create new App
-
Click on
Custom App
-
Select
Server Authentication (Client Credentials Grant)
-
Provide an App name, for example
elastic-box-integration
-
Click on
Create App
-
When your App has been created, scroll down and under
App Access Level
selectApp + Enterprise Access
-
Scroll down to
Application Scopes
and underAdministrative Actions
select-
Manage users
-
Manage enterprise properties
-
-
Scroll down to
Advanced Features
and select-
Generate user access tokens
-
-
Click on
Save Changes
Submit the application for Authorization from the Box Developer Console
edit-
In the left side bar, at the bottom, click on
</> Dev Console
-
Click on your application, which should now have an extra
Authorization
tab, so click on this -
Click on
Review and Submit
, add a comment to explain your changes then click onSubmit
.
Authorize the Application from the Box Admin Console
editIf you are the admin
user you can do this yourself, otherwise reach out to the admin to confirm your motives and request that they authorize your request, since there may be some delay before they are aware of your request.
To authorize the App ensure you are logged in to the Admin Console and follow these steps:
- In the left side bar click on Apps
-
Click on the Custom Apps Manager tab, you should see your App under
Server Authentication Apps
and theAuthorisation Status
should bePending Reauth
-
Click on your App, it should have the following
App Details
:-
Last Activity
-
<date>
-
-
Developer Email
-
<your email>
-
-
Authorization Status
-
Pending Reauthorization
-
-
Enablement Status
-
Enabled
-
-
Client ID
-
<alphanumeric id>
-
-
App Access
-
All Users
-
-
App Scopes
-
Read and write all files and folders stored in Box
-
Manage enterprise properties
-
Manage users
-
Manage app users
-
Generate user access tokens
-
-
Authentication Type
-
OAuth 2.0 with Client Credentials Grant
-
-
-
Click on
Authorize
- a pop up will reconfirm these details -
Click on
Authorize
- the Authorization Status should update to- Authorized
Locate the Elastic Integration for Box Events Settings
editClient ID
editClick on your App in the Box Developer Console, under the Configuration
tab, scroll down to OAuth 2.0 Credentials
and copy the Client ID
Client Secret
editHave your 2FA device prepared and to hand. Click on your App in the Box Developer Console, under the Configuration
tab, scroll down to OAuth 2.0 Credentials
and click on Fetch Client Secret
. Complete the 2FA challenge to copy the Client Secret
Box Subject ID
editClick on your App in the Box Developer Console, under the General Settings
tab, scroll down to App Info
. If you intend to harvest events solely for the admin
user copy the User ID
otherwise copy the Enterprise ID
Box Subject Type
editIf you intend to harvest events solely for the admin
user set this to user
otherwise set to enterprise
Grant Type
editUse the provided default client_credentials
Interval
editThis sets the interval between requests to the Target Service, for example 300s
will send a request every 300 seconds. Events will be returned in batches of up to 100, with successive calls on expiry of the configured interval
so you may wish to specify a lower interval when a substantial number of events are expected, however, we suggest to consider bandwidth when using lower settings
Stream Type
editTo retrieve events for a single user, set stream type to all
(default). To select only events that may cause file tree changes such as file updates or collaborations, use changes
. To select a subset of changes
for synced folders, use sync
. To retrieve events for the entire enterprise, set the stream_type to admin_logs_streaming
for live monitoring of new events, or admin_logs
for querying across historical events.
Preserve Original Event
editPreserves a raw copy of the original event, added to the field event.original
.
Exported fields
Field | Description | Type |
---|---|---|
@timestamp |
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events. |
date |
box.additional_details.shield_alert.alert_id |
Box Shield alert ID |
long |
box.additional_details.shield_alert.alert_summary.anomaly_period.date_range.end_date |
When the anomaly was last observed |
keyword |
box.additional_details.shield_alert.alert_summary.anomaly_period.date_range.start_date |
When the anomaly was last observed |
keyword |
box.additional_details.shield_alert.alert_summary.anomaly_period.download_size |
Volume of Anomalous Downloads detected by Box Shield relating to an account holder who may be stealing sensitive content |
keyword |
box.additional_details.shield_alert.alert_summary.anomaly_period.downloaded_files_count |
Number of Anomalous Downloads detected by Box Shield relating to an account holder who may be stealing sensitive content |
long |
box.additional_details.shield_alert.alert_summary.description |
Description of Alert |
keyword |
box.additional_details.shield_alert.alert_summary.download_delta_percent |
Anomaly delta percentage relative to historical expectation |
long |
box.additional_details.shield_alert.alert_summary.download_delta_size |
Anomaly delta size relative to historical expectation |
keyword |
box.additional_details.shield_alert.alert_summary.download_ips.ip |
IP address |
ip |
box.additional_details.shield_alert.alert_summary.historical_period.date_range.end_date |
End of historical period for calculation of historical expectation |
keyword |
box.additional_details.shield_alert.alert_summary.historical_period.date_range.start_date |
Start of historical period for calculation of historical expectation |
keyword |
box.additional_details.shield_alert.alert_summary.historical_period.download_size |
Volume of Anomalous Downloads detected by Box Shield relating to an account holder who may be stealing sensitive content |
keyword |
box.additional_details.shield_alert.alert_summary.historical_period.downloaded_files_count |
Number of Anomalous Downloads detected by Box Shield relating to an account holder who may be stealing sensitive content |
long |
box.additional_details.shield_alert.alert_summary.upload_activity.event_type |
Type of event, e.g. |
keyword |
box.additional_details.shield_alert.alert_summary.upload_activity.ip_info.ip |
IP address |
ip |
box.additional_details.shield_alert.alert_summary.upload_activity.ip_info.registrant |
Registrant of IP |
keyword |
box.additional_details.shield_alert.alert_summary.upload_activity.item_id |
ID of item |
keyword |
box.additional_details.shield_alert.alert_summary.upload_activity.item_name |
Name of item |
keyword |
box.additional_details.shield_alert.alert_summary.upload_activity.item_path |
Path to Item |
keyword |
box.additional_details.shield_alert.alert_summary.upload_activity.item_type |
Type of Item |
keyword |
box.additional_details.shield_alert.alert_summary.upload_activity.occurred_at |
Time of Upload |
keyword |
box.additional_details.shield_alert.alert_summary.upload_activity.service_name |
Service used to upload the suspected Malware |
keyword |
box.additional_details.shield_alert.created_at |
Time alert was created |
date |
box.additional_details.shield_alert.link |
URL with information about this alert |
keyword |
box.additional_details.shield_alert.malware_info.categories |
Array of Malware Categories e.g. |
keyword |
box.additional_details.shield_alert.malware_info.description |
Describes the Malware |
keyword |
box.additional_details.shield_alert.malware_info.detail_link |
URL with detail of Malware |
keyword |
box.additional_details.shield_alert.malware_info.family |
Malware Family |
keyword |
box.additional_details.shield_alert.malware_info.file_created |
Date of file creation |
date |
box.additional_details.shield_alert.malware_info.file_created_by.email |
Email of file creator |
keyword |
box.additional_details.shield_alert.malware_info.file_created_by.id |
ID of file creator. The Box Shield documentation example uses |
long |
box.additional_details.shield_alert.malware_info.file_created_by.name |
Display name of file creator |
keyword |
box.additional_details.shield_alert.malware_info.file_hash |
File hash |
keyword |
box.additional_details.shield_alert.malware_info.file_hash_type |
Hash type, e.g. |
keyword |
box.additional_details.shield_alert.malware_info.file_id |
File ID |
long |
box.additional_details.shield_alert.malware_info.file_name |
File name |
keyword |
box.additional_details.shield_alert.malware_info.file_size_bytes |
File size in bytes |
long |
box.additional_details.shield_alert.malware_info.file_version |
File version |
long |
box.additional_details.shield_alert.malware_info.file_version_uploaded |
Date this version of file was uploaded |
date |
box.additional_details.shield_alert.malware_info.file_version_uploaded_by.email |
Email of file uploader |
keyword |
box.additional_details.shield_alert.malware_info.file_version_uploaded_by.id |
ID of file uploader |
long |
box.additional_details.shield_alert.malware_info.file_version_uploaded_by.name |
Display name of file uploader |
keyword |
box.additional_details.shield_alert.malware_info.first_seen |
Time Malware first observed |
date |
box.additional_details.shield_alert.malware_info.last_seen |
Time Malware last observed |
date |
box.additional_details.shield_alert.malware_info.malware_name |
Malware name |
keyword |
box.additional_details.shield_alert.malware_info.status |
Malware status e.g. |
keyword |
box.additional_details.shield_alert.malware_info.tags |
Array of Malware Tags e.g. |
keyword |
box.additional_details.shield_alert.priority |
Box Shield priority of alert |
keyword |
box.additional_details.shield_alert.risk_score |
Risk score as calculated by Box Shield |
long |
box.additional_details.shield_alert.rule_category |
Rule Category as allocated by Box Shield |
keyword |
box.additional_details.shield_alert.rule_id |
Box Shield rule ID |
long |
box.additional_details.shield_alert.rule_name |
Box Shield rule name |
keyword |
box.additional_details.shield_alert.user.email |
User email |
keyword |
box.additional_details.shield_alert.user.id |
User ID |
long |
box.additional_details.shield_alert.user.name |
User name |
keyword |
box.created_at |
When the event object was created |
date |
box.created_by.id |
The unique identifier for the connection user. |
keyword |
box.created_by.login |
The primary email address of the connection user. Maps from **.login |
keyword |
box.created_by.name |
The display name of the connection user. Maps from **.name |
keyword |
box.created_by.type |
E.g. |
keyword |
box.ip_address |
IP Address |
keyword |
box.recorded_at |
The date and time at which this event occurred |
date |
box.session.id |
Box |
keyword |
box.source.address |
Physical Address associated with the event |
keyword |
box.source.avatar_url |
URL for user avatar |
boolean |
box.source.created_at |
The date and time at which this folder was originally created |
date |
box.source.created_by.id |
The unique identifier for this user |
keyword |
box.source.created_by.login |
The primary email address of this user. Maps from **.login |
keyword |
box.source.created_by.name |
The display name of this user. Maps from **.name |
keyword |
box.source.created_by.type |
Value is always |
keyword |
box.source.description |
The optional description of this folder |
text |
box.source.etag |
The HTTP etag of this folder |
keyword |
box.source.file_version.id |
The unique identifier that represent a file version |
keyword |
box.source.file_version.type |
Value is always |
keyword |
box.source.id |
The unique identifier that represent a folder |
keyword |
box.source.item_status |
Defines if this item has been deleted or not. active when the item has is not in the trash trashed when the item has been moved to the trash but not deleted deleted when the item has been permanently deleted. Value is one of |
keyword |
box.source.job_title |
User job title |
boolean |
box.source.language |
User preferred language |
boolean |
box.source.login |
User login |
boolean |
box.source.max_upload_size |
Max upload size |
boolean |
box.source.modified_at |
The date and time at which this folder was last updated |
date |
box.source.modified_by.id |
The unique identifier for this user that last modified the file. |
keyword |
box.source.modified_by.login |
The primary email address of this user. Maps from **.login |
keyword |
box.source.modified_by.name |
The display name of this user. Maps from **.name |
keyword |
box.source.modified_by.type |
Value is always |
keyword |
box.source.notification_email.email |
Email to send notifications |
boolean |
box.source.notification_email.is_confirmed |
True if |
boolean |
box.source.owned_by.id |
The unique identifier for this user |
keyword |
box.source.owned_by.login |
The primary email address of this user. Maps from **.login |
keyword |
box.source.owned_by.name |
The display name of this user. Maps from **.name |
keyword |
box.source.owned_by.type |
Value is always |
keyword |
box.source.parent.etag |
The HTTP etag of this folder |
keyword |
box.source.parent.id |
The unique identifier that represent a folder |
keyword |
box.source.parent.name |
The name of the folder |
keyword |
box.source.parent.sequence_id |
A numeric identifier that represents the most recent user event that has been applied to this item (parent) |
keyword |
box.source.parent.type |
Value is always |
keyword |
box.source.path_collection.entries.etag |
The HTTP etag of this folder |
keyword |
box.source.path_collection.entries.id |
The unique identifier that represent a folder. This field is an array |
keyword |
box.source.path_collection.entries.name |
The name of the parent folder. This field is an array |
keyword |
box.source.path_collection.entries.sequence_id |
A numeric identifier that represents the most recent user event that has been applied to this item |
keyword |
box.source.path_collection.entries.type |
Value is always |
keyword |
box.source.path_collection.total_count |
The number of folders in this list |
long |
box.source.phone |
Phone number |
boolean |
box.source.purged_at |
The time at which this file is expected to be purged from the trash |
boolean |
box.source.sequence_id |
A numeric identifier that represents the most recent user event that has been applied to this item |
keyword |
box.source.sha1 |
SHA1 hash of the item concerned |
keyword |
box.source.space_amount |
Space amount |
boolean |
box.source.space_used |
Space used |
boolean |
box.source.status |
For example: |
boolean |
box.source.synced |
Legacy property for compatibility with Box Desktop |
boolean |
box.source.timezone |
Timezone |
boolean |
box.source.trashed_at |
The time at which this file was put in the trash |
boolean |
cloud.image.id |
Image ID for the cloud instance. |
keyword |
data_stream.dataset |
The field can contain anything that makes sense to signify the source of the data. Examples include |
constant_keyword |
data_stream.namespace |
A user defined namespace. Namespaces are useful to allow grouping of data. Many users already organize their indices this way, and the data stream naming scheme now provides this best practice as a default. Many users will populate this field with |
constant_keyword |
data_stream.type |
An overarching type for the data stream. Currently allowed values are "logs" and "metrics". We expect to also add "traces" and "synthetics" in the near future. |
constant_keyword |
event.dataset |
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It’s recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name. |
constant_keyword |
event.module |
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), |
constant_keyword |
host.containerized |
If the host is a container. |
boolean |
host.cpu.pct |
Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 1. |
scaled_float |
host.network.in.bytes |
The number of bytes received on all network interfaces by the host in a given period of time. |
long |
host.network.in.packets |
The number of packets received on all network interfaces by the host in a given period of time. |
long |
host.network.out.bytes |
The number of bytes sent out on all network interfaces by the host in a given period of time. |
long |
host.network.out.packets |
The number of packets sent out on all network interfaces by the host in a given period of time. |
long |
host.os.build |
OS build information. |
keyword |
host.os.codename |
OS codename, if any. |
keyword |
input.type |
Type of Filebeat input. |
keyword |
related.description |
Array of |
keyword |
related.indicator_type |
Array of |
keyword |
related.location |
Array of |
geo_point |
Changelog
editChangelog
Version | Details | Kibana version(s) |
---|---|---|
2.11.0 |
Enhancement (View pull request) |
8.13.0 or higher |
2.10.0 |
Enhancement (View pull request) |
8.13.0 or higher |
2.9.1 |
Enhancement (View pull request) |
8.13.0 or higher |
2.9.0 |
Enhancement (View pull request) |
8.13.0 or higher |
2.8.0 |
Enhancement (View pull request) |
8.12.0 or higher |
2.7.0 |
Enhancement (View pull request) |
8.12.0 or higher |
2.6.0 |
Enhancement (View pull request) |
8.12.0 or higher |
2.5.1 |
Enhancement (View pull request) |
8.7.1 or higher |
2.5.0 |
Enhancement (View pull request) |
8.7.1 or higher |
2.4.0 |
Enhancement (View pull request) |
8.7.1 or higher |
2.3.0 |
Enhancement (View pull request) |
8.7.1 or higher |
2.2.0 |
Enhancement (View pull request) |
8.7.1 or higher |
2.1.0 |
Enhancement (View pull request) |
8.7.1 or higher |
2.0.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.9.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.8.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.7.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.6.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.5.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.4.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.3.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.2.0 |
Enhancement (View pull request) |
8.7.1 or higher |
1.1.0 |
Enhancement (View pull request) |
7.17.0 or higher |
1.0.0 |
Enhancement (View pull request) |
7.17.0 or higher |
0.4.1 |
Enhancement (View pull request) |
— |
0.4.0 |
Enhancement (View pull request) |
— |
0.3.0 |
Enhancement (View pull request) |
— |
0.2.0 |
Enhancement (View pull request) |
— |
0.1.0 |
Enhancement (View pull request) |
— |