-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ERC: dApp Security Policy Standard #715
base: master
Are you sure you want to change the base?
Add ERC: dApp Security Policy Standard #715
Conversation
File
|
The commit e1a2736 (as a parent of 376e063) contains errors. |
@@ -0,0 +1,111 @@ | |||
--- | |||
title: dApp Security Policy Standard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: dApp Security Policy Standard | |
title: dApp Security Policy |
Standard is superfluous in an ERC title
description: Defines a document standard for defining the expected on-chain behavior of a dApp frontend. | ||
author: Bernard Wagner (bernard-wagner) | ||
status: Draft | ||
discussions-to: https://ethereum-magicians.org/t/dapp-security-policy/21431 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The discussions link should be in the ERC category on Eth Magicians. You could move it and add the ERC number or create a new discussions topic which is just a link to this PR.
author: Bernard Wagner (bernard-wagner) | ||
status: Draft | ||
discussions-to: https://ethereum-magicians.org/t/dapp-security-policy/21431 | ||
type: Meta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Meta the correct type for this ERC?
@@ -0,0 +1,111 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--- | |
--- | |
eip: 7817 |
Assigning next sequential EIP/ERC/RIP number.
Please also update the filename
Very early draft for the related ENSIP:
ENSIP-XX: Security Policy Records
Abstract
This ENSIP extends ENSIP-5: Text Records and defines a record,
dappsec
, that specifies the location of a security policy as described in ERC-TBC. The text record is intended to be queried by wallets for domains imported using ENSIP-6: DNS-in-ENS, thereby notarising the security policy for a particular domain or subdomain. Wallets can then use the security policy to validate the properties of transaction signing requests based on their HTTP origin. The objective is to mitigate the impact of front-end hacks, such as DNS takeovers or supply-chain compromises of front-end components.Motivation
Hackers often target dApp front-ends to coerce users into signing transactions that allow the hacker to transfer victims' funds. By introducing a security policy standard, wallet providers can implement safeguards as described in ERC-XXX to protect users against such attacks.
Specification
Introduce a well-known global text record that allows wallet providers to discover the security policy for a hosted dApp using on-chain data.
Example Text Record:
https
oripfs
schemas.https
schema, it MUST contain the policy document'skeccak256
hash as a 0x-prefixed lowercase hex string. Thehash
property is OPTIONAL for theipfs
schema, as the policy's integrity is implicit.