# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one # or more contributor license agreements. Licensed under the Elastic License # 2.0; you may not use this file except in compliance with the Elastic License # 2.0. from . import common from . import RtaMetadata metadata = RtaMetadata( uuid="4d9af153-a878-4ae3-b6c4-b3f14e516f25", platforms=["macos"], endpoint=[ { "rule_name": "Manual Loading of a Suspicious Chromium Extension", "rule_id": "e8d52cc6-8785-43d2-8e98-30f07e19e16c", } ], siem=[], techniques=["T1176"], ) @common.requires_os(*metadata.platforms) def main(): common.log("Executing chrome commands to load suspicious ext.") chrome = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" common.execute([chrome, "--load-extension=/test"]) if __name__ == "__main__": exit(main())