Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Burrows–Abadi–Needham logic
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Burrows–Abadi–Needham logic''' (also known as the '''BAN logic''') is a set of rules for defining and analyzing information exchange protocols. Specifically, BAN logic helps its users determine whether exchanged information is trustworthy, secured against eavesdropping, or both. BAN logic starts with the assumption that all information exchanges happen on media vulnerable to tampering and public monitoring. This has evolved into the popular security mantra, "Don't trust the network." A typical BAN logic sequence includes three steps:<ref>{{cite web | url = http://www.cl.cam.ac.uk/~rja14/Papers/SEv2-c03.pdf | publisher = UT Austin CS | title = Course material on BAN logic }}</ref> # Verification of message origin # Verification of message [[Freshness (cryptography)|freshness]] # Verification of the origin's trustworthiness. BAN logic uses [[postulate]]s and [[definition]]s – like all [[axiomatic system]]s – to analyze [[authentication]] [[Protocol (computing)|protocols]]. Use of the BAN logic often accompanies a [[security protocol notation]] formulation of a protocol and is sometimes given in papers. == Language type == BAN logic, and logics in the same family, are [[decidable language|decidable]]: there exists an algorithm taking BAN hypotheses and a purported conclusion, and that answers whether or not the conclusion is derivable from the hypotheses. The proposed algorithms use a variant of [[Datalog|magic sets]].<ref>{{cite book | first = David | last = Monniaux | title = Proceedings of the 12th IEEE Computer Security Foundations Workshop | chapter = Decision procedures for the analysis of cryptographic protocols by logics of belief | date = 1999 | pages = 44–54 | doi = 10.1109/CSFW.1999.779761 | isbn = 0-7695-0201-6 | s2cid = 11283134 | chapter-url = http://citeseer.ist.psu.edu/monniaux99decision.html }}</ref> == Alternatives and criticism == BAN logic inspired many other similar formalisms, such as [[Gong–Needham–Yahalom logic|GNY logic]]. Some of these try to repair one weakness of BAN logic: the lack of a good semantics with a clear meaning in terms of knowledge and possible universes. However, starting in the mid-1990s, crypto protocols were analyzed in operational models (assuming perfect cryptography) using model checkers, and numerous bugs were found in protocols that were "verified" with BAN logic and related formalisms. {{citation needed|reason=What bugs? Which protocols?|date=November 2015}} In some cases a protocol was reasoned as secure by the BAN analysis but were in fact insecure.<ref>{{cite book |last1=Boyd |first1=Colin |last2=Mao |first2=Wenbo |chapter=On a limitation of BAN logic |date=1994 |chapter-url=http://dl.acm.org/citation.cfm?id=188350 |title=EUROCRYPT '93: Workshop on the theory and application of cryptographic techniques on Advances in cryptology |pages=240–247 |isbn=9783540576006 |access-date=2016-10-12 }}</ref> This has led to the abandonment of BAN-family logics in favor of proof methods based on standard invariance reasoning. {{Citation needed|date=January 2017}} == Basic rules == The definitions and their implications are below (''P'' and ''Q'' are network agents, ''X'' is a message, and ''K'' is an [[encryption key]]): * ''P'' believes ''X'': ''P'' acts as if ''X'' is true, and may assert ''X'' in other messages. * ''P'' has jurisdiction over ''X'': ''P''{{'}}s beliefs about ''X'' should be trusted. * ''P'' said ''X'': At one time, ''P'' transmitted (and believed) message ''X'', although ''P'' might no longer believe ''X''. * ''P'' sees ''X'': ''P'' receives message ''X'', and can read and repeat ''X''. * {{mset|''X''}}<sub>''K''</sub>: ''X'' is encrypted with key ''K''. * fresh(''X''): ''X'' has not previously been sent in any message. * key(''K'', ''P''↔''Q''): ''P'' and ''Q'' may communicate with shared key ''K'' The meaning of these definitions is captured in a series of postulates: * If ''P'' believes {{nowrap|key(''K'', ''P''↔''Q'')}}, and ''P'' sees {{mset|''X''}}<sub>''K''</sub>, then ''P'' believes (''Q'' said ''X'') * If ''P'' believes (''Q'' said ''X'') and ''P'' believes fresh(''X''), then ''P'' believes (''Q'' believes ''X''). ''P'' must believe that ''X'' is fresh here. If ''X'' is not known to be fresh, then it might be an obsolete message, replayed by an attacker. * If ''P'' believes (''Q'' has jurisdiction over ''X'') and ''P'' believes (''Q'' believes ''X''), then ''P'' believes ''X'' * There are several other technical postulates having to do with composition of messages. For example, if ''P'' believes that ''Q'' said {{nowrap|⟨''X'', ''Y''⟩}}, the concatenation of ''X'' and ''Y'', then ''P'' also believes that ''Q'' said ''X'', and ''P'' also believes that ''Q'' said ''Y''. Using this notation, the assumptions behind an authentication protocol can be formalized. Using the postulates, one can prove that certain agents believe that they can communicate using certain keys. If the proof fails, the point of failure usually suggests an attack which compromises the protocol. == BAN logic analysis of the Wide Mouth Frog protocol == A very simple protocol – the [[Wide Mouth Frog protocol]] – allows two agents, ''A'' and ''B'', to establish secure communications, using a trusted authentication server, S, and synchronized clocks all around. Using standard notation the protocol can be specified as follows: : ''A'' → ''S'': ''A'', {{mset|''T''<sub>''A''</sub>, ''K''<sub>''AB''</sub>, ''B''}}<sub>''K''<sub>''AS''</sub></sub> : ''S'' → ''B'': {{mset|''T''<sub>''S''</sub>, ''K''<sub>''AB''</sub>, A}}<sub>''K''<sub>''BS''</sub></sub> Agents A and B are equipped with keys ''K''<sub>''AS''</sub> and ''K''<sub>''BS''</sub>, respectively, for communicating securely with S. So we have assumptions: : ''A'' believes key(''K''<sub>''AS''</sub>, ''A''↔''S'') : ''S'' believes key(''K''<sub>''AS''</sub>, ''A''↔''S'') : ''B'' believes key(''K''<sub>''BS''</sub>, ''B''↔''S'') : ''S'' believes key(''K''<sub>''BS''</sub>, ''B''↔''S'') Agent ''A'' wants to initiate a secure conversation with ''B''. It therefore invents a key, ''K''<sub>''AB''</sub>, which it will use to communicate with ''B''. ''A'' believes that this key is secure, since it made up the key itself: : ''A'' believes {{nowrap|key(''K''<sub>''AB''</sub>, ''A''↔''B'')}} ''B'' is willing to accept this key, as long as it is sure that it came from ''A'': : ''B'' believes (''A'' has jurisdiction over {{nowrap|key(''K'', ''A''↔''B'')}}) Moreover, ''B'' is willing to trust ''S'' to accurately relay keys from ''A'': : ''B'' believes (''S'' has jurisdiction over (''A'' believes {{nowrap|key(''K'', ''A''↔''B'')}})) That is, if ''B'' believes that ''S'' believes that ''A'' wants to use a particular key to communicate with ''B'', then ''B'' will trust ''S'' and believe it also. The goal is to have : ''B'' believes key(''K''<sub>''AB''</sub>, ''A''↔''B'') ''A'' reads the clock, obtaining the current time ''t'', and sends the following message: : 1 ''A''→''S'': {{mset|''t'', key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}<sub>''K''<sub>''AS''</sub></sub> That is, it sends its chosen session key and the current time to ''S'', encrypted with its private authentication server key ''K''<sub>''AS''</sub>. Since ''S'' believes that {{nowrap|key(''K''<sub>''AS''</sub>, ''A''↔''S'')}}, and ''S'' sees {{nowrap|{{mset|''t'', key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}<sub>''K''<sub>''AS''</sub></sub>}}, then ''S'' concludes that ''A'' actually said {{nowrap|{{mset|''t'', key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}}}. (In particular, ''S'' believes that the message was not manufactured out of whole cloth by some attacker.) Since the clocks are synchronized, we can assume : ''S'' believes fresh(''t'') Since ''S'' believes fresh(''t'') and ''S'' believes ''A'' said {{nowrap|{{mset|''t'', key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}}}, ''S'' believes that ''A'' actually ''believes'' that {{nowrap|key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}. (In particular, ''S'' believes that the message was not replayed by some attacker who captured it at some time in the past.) ''S'' then forwards the key to ''B'': : 2 ''S''→''B'': {{mset|''t'', ''A'', ''A'' believes key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}<sub>''K''<sub>''BS''</sub></sub> Because message 2 is encrypted with ''K''<sub>''BS''</sub>, and ''B'' believes {{nowrap|key(''K''<sub>''BS''</sub>, ''B''↔''S'')}}, ''B'' now believes that ''S'' said {{nowrap|{{mset|''t'', ''A'', ''A'' believes key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}}}. Because the clocks are synchronized, ''B'' believes fresh(''t''), and so fresh(''A'' believes {{nowrap|key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}). Because ''B'' believes that ''S''{{'}}s statement is fresh, ''B'' believes that ''S'' believes that (''A'' believes {{nowrap|key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}). Because ''B'' believes that ''S'' is authoritative about what ''A'' believes, ''B'' believes that (''A'' believes {{nowrap|key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}). Because ''B'' believes that ''A'' is authoritative about session keys between ''A'' and ''B'', ''B'' believes {{nowrap|key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}. ''B'' can now contact ''A'' directly, using ''K''<sub>''AB''</sub> as a secret session key. Now let's suppose that we abandon the assumption that the clocks are synchronized. In that case, ''S'' gets message 1 from ''A'' with {{nowrap|{{mset|''t'', key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}}}, but it can no longer conclude that ''t'' is fresh. It knows that ''A'' sent this message at ''some'' time in the past (because it is encrypted with ''K''<sub>''AS''</sub>) but not that this is a recent message, so ''S'' doesn't believe that ''A'' necessarily wants to continue to use the key ''K''<sub>''AB''</sub>. This points directly at an attack on the protocol: An attacker who can capture messages can guess one of the old session keys ''K''<sub>''AB''</sub>. (This might take a long time.) The attacker then replays the old {{nowrap|{{mset|''t'', key(''K''<sub>''AB''</sub>, ''A''↔''B'')}}}} message, sending it to ''S''. If the clocks aren't synchronized (perhaps as part of the same attack), ''S'' might believe this old message and request that ''B'' use the old, compromised key over again. The original ''Logic of Authentication'' paper (linked below) contains this example and many others, including analyses of the [[Kerberos (protocol)|Kerberos]] handshake protocol, and two versions of the [[Andrew Project]] RPC handshake (one of which is defective). == References == {{reflist}} == Further reading == * {{cite journal | citeseerx = 10.1.1.115.3569 | title = A Logic of Authentication | url = http://ftp.digital.com/pub/DEC/SRC/research-reports/abstracts/src-rr-039.html | author-link1 = Michael Burrows (computer scientist) | first1 = Michael | last1 = Burrows | author-link2 = Martín Abadi | first2 = Martín | last2 = Abadi | author-link3 = Roger Needham | first3 = Roger | last3 = Needham | journal = Proceedings of the Royal Society of London, Series A | year = 1989 | volume = 426 | issue = 1871 | page = 233 | doi = 10.1098/rspa.1989.0125 | bibcode = 1989RSPSA.426..233B | s2cid = 6937380 }} * Source: [https://web.archive.org/web/20050902032746/http://www.pasta.cs.uit.no/thesis/html/ronnya/node31.html The Burrows–Abadi–Needham logic] {{DEFAULTSORT:Burrows-Abadi-Needham logic}} [[Category:Theory of cryptography]] [[Category:Automated theorem proving]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:'
(
edit
)
Template:Citation needed
(
edit
)
Template:Cite book
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:Mset
(
edit
)
Template:Nowrap
(
edit
)
Template:Reflist
(
edit
)