{"id":13722168,"url":"https://github.com/demisto/alfred","last_synced_at":"2025-05-12T19:14:17.916Z","repository":{"id":49879450,"uuid":"37825898","full_name":"demisto/alfred","owner":"demisto","description":"A Slack bot to add security info to messages containing URLs, hashes and IPs","archived":false,"fork":false,"pushed_at":"2024-08-28T02:57:06.000Z","size":11307,"stargazers_count":71,"open_issues_count":4,"forks_count":14,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-05-12T19:14:10.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dbot.demisto.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/demisto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-21T21:03:28.000Z","updated_at":"2024-09-25T20:56:00.000Z","dependencies_parsed_at":"2023-01-18T03:45:39.168Z","dependency_job_id":null,"html_url":"https://github.com/demisto/alfred","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demisto%2Falfred","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demisto%2Falfred/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demisto%2Falfred/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demisto%2Falfred/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demisto","download_url":"https://codeload.github.com/demisto/alfred/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805843,"owners_count":21967053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:01:25.293Z","updated_at":"2025-05-12T19:14:17.877Z","avatar_url":"https://github.com/demisto.png","language":"Go","funding_links":[],"categories":["Chat Bots"],"sub_categories":[],"readme":"# DBOT - Demisto Security Bot [![Circle CI](https://circleci.com/gh/demisto/alfred/tree/master.svg?style=svg\u0026circle-token=298d2e89802eaed2e8972abe83baac50d9ee5224)](https://circleci.com/gh/demisto/alfred/tree/master)\n\nA Slack bot to add security info to messages containing URLs, hashes and IPs. You can see it in action at [dbot.demisto.com](https://dbot.demisto.com).\n\n## Deprecation Notice\nDBot has been deprecated and is no longer supported by the Demisto team.\n\n## Authors\nThis project was built by the [Demisto](https://www.demisto.com) team\n\n## Quick Start\n\nMake sure you have a Go environment set up (either using [GVM](https://github.com/moovweb/gvm/) or just native install)\n\n```sh\n$ go get -t -u -d -v github.com/demisto/alfred\n```\n\nTo get the client artifacts (html, css, js) built install node, npm and then:\n```sh\n$ cd $GOPATH/src/github.com/demisto/alfred/client\n$ npm i\n$ npm run build\n```\n(this will create client artifacts under `$GOPATH/src/github.com/demisto/alfred/client/build`)\n\nCreate the Go wrapper around the client files:\n\n```sh\n$ go get -v github.com/slavikm/esc\n$ cd $GOPATH/src/github.com/demisto/alfred/\n$ $GOPATH/bin/esc -o web/static.go -pkg web -prefix client/build -ignore \\\\.DS_Store client/build\n```\n\nAnd finally, install and run:\n\n```sh\n$ cd $GOPATH/src/github.com/demisto/alfred/\n$ go install\n$ cd $GOPATH/bin\n$ ./alfred [-loglevel debug] [-conf path/to/conf] [-logfile path/to/log]\n```\n\nIf you are running from bin (as above), make sure to create a soft link to the site\n```sh\n$ ln -s ln -s $GOPATH/src/github.com/demisto/alfred/static/ static\n```\n\nInstall `mysql`\nRun the following to configure sql database:\n```sh\n$ mysql -u root (if password is set then add -p)\nmysql\u003e CREATE DATABASE demisto CHARACTER SET = utf8;\nmysql\u003e CREATE DATABASE demistot CHARACTER SET = utf8;\nmysql\u003e CREATE USER demisto IDENTIFIED BY 'password';\nmysql\u003e GRANT ALL on demisto.* TO demisto;\nmysql\u003e GRANT ALL on demistot.* TO demisto;\nmysql\u003e drop user ''@'localhost';\n```\n\n\nOr, you can run directly from the source without installing by:\n```sh\n$ cd $GOPATH/src/github.com/demisto/alfred/\n$ go run alfred.go [-loglevel debug] [-conf path/to/conf] [-logfile path/to/log]\n```\n\nPlease make sure to run esc again to embed the fully updated site into Go before release.\nWhile developing, you don't need to run esc unless adding new files to the site.\n\n### Configuration\n- Make sure to specify the Slack client ID and secret in a configuration file\n- To get VirusTotal reputation, you must specify the VirusTotal key. See conf/conf.go for more details.\n- Add `\"Web\": true` to configuration file to support web service (access reputation data from the browser)\n- Add `\"Worker\": true` to configuration file to support web service (process work by the bot)\n- Configure mysql database configuration under `\"DB\"` key (See conf/conf.go for more detail):\n```\n{\n    \"ConnectString\": \"tcp(127.0.0.1:3306)/demisto?parseTime=true\", // where \"demisto\" is the DATABASE name from previous step and 127.0.0.1:3306 is the ip:port of the database\n    \"Username\": \"demisto\", // user created in previous step\n    \"Password\": \"password\", // user's password created in previous step\n    \"ServerCA\": \"-----BEGIN CERTIFICATE---...\", // Not necessary for local mysql\n    \"ClientCert\": \"-----BEGIN CERTIFICATE----...\", // Not necessary for local mysql\n    \"ClientKey\": \"-----BEGIN RSA PRIVATE KEY--...\" // Not necessary for local mysql\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemisto%2Falfred","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemisto%2Falfred","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemisto%2Falfred/lists"}