omnia_checkDappSecurity

Returns security details of the web Dapp at the given url.

Note: This is a chain-agnostic method.

Parameters

STRING - url. The url of the website that is checked. REQUIRED

Returns

Object with following details:

Parameter
Description
Notice

project_name

It describes the dApp project name.

url

It describes the dApp's website link.

contracts_security

It describes the security information for this dApp's contracts. The info includes: (1) chain_id - describes the chains that contracts are deployed on; (2) contract_address - describes the dApp's contract address; (3) is_open_source - describes whether this contract is open source; (4) malicious_contract - describes whether the address is a suspected malicious contract; (5) malicious_behavior - describes specific malicious behaviors of the contract; (6) deployment_time - describes the deployed time of the contract; (7) creator_address - describes the creator's address of the contract; (8) malicious_creator - describes whether the creator is a suspected malicious address; (9) malicious_creator_behavior - describes specific malicious behaviors of the contract creator.

malicious_contract and malicious_creator return "0" does not mean the address is completely safe. Maybe we just haven't found its malicious behavior.

is_audit

It describes whether the dApp was audited by a reputable audit firm. "1" means true; "0" means that we have not found audit information for this dApp.

Return "0" does not mean the dApp was not audited. Maybe we just haven't found audit information for this dApp yet.

audit_info

It describes the audit information of the dApp. The info includes: (1) audit_time - describes the time shown in the latest audit report; (2) audit_link - describes the website link of the audit report; (3) audit_firm - describes the firm that audited the dApp.

When the dApp was not audited, (is_audit=0), it will return "null". If there are multiple audit reports, the information of the latest audit report is displayed.

trust_list

It describes whether the dApp is a famous and trustworthy one. "1" means true; "0" means that this dApp is not yet on our trusted list.

(1) Only "trust_list": "1" means it is a famous and trustworthy dApp. (2) "0" return doesn't mean it is risky.

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "omnia_checkdappsecurity",
    "params": [
        {
            "url": "https://app.uniswap.org/#/swap"
        }
    ]
}
'

Response

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "project_name": "Uniswap",
        "url": "https://app.uniswap.org/#/swap",
        "is_audit": 1,
        "trust_list": 1,
        "audit_info": [
            {
                "audit_time": "2019.01.11",
                "audit_link": "https://github.com/ConsenSys/Uniswap-audit-report-2018-12/blob/master/Uniswap-final.md",
                "audit_firm": "ConsenSys"
            }
        ],
        "contracts_security": [
            {
                "chain_id": "1",
                "contracts": [
                    {
                        "contract_address": "0xc0a47dfe034b400b47bdad5fecda2621de6c4d95",
                        "is_open_source": 1,
                        "creator_address": "0xd1c24f50d05946b3fabefbae3cd0a7e9938c63f2",
                        "malicious_contract": 0,
                        "deployment_time": 1541137042,
                        "malicious_creator": 0,
                        "malicious_creator_behavior": [],
                        "malicious_behavior": []
                    },
                    {
                        "contract_address": "0x077d52b047735976dfda76fef74d4d988ac25196",
                        "is_open_source": 1,
                        "creator_address": "0xb8dc24569eed78375c71808a865a8a013bd2cb7c",
                        "malicious_contract": 0,
                        "deployment_time": 1541935097,
                        "malicious_creator": 0,
                        "malicious_creator_behavior": [],
                        "malicious_behavior": []
                    },
                    {
                        "contract_address": "0x2e642b8d59b45a1d8c5aef716a84ff44ea665914",
                        "is_open_source": 1,
                        "creator_address": null,
                        "malicious_contract": 0,
                        "deployment_time": null,
                        "malicious_creator": 0,
                        "malicious_creator_behavior": [],
                        "malicious_behavior": []
                    }
                    ...
                ]
            }
        ]
    }
}

Last updated