<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=26&amp;t=1667" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-01-02T23:02:46+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=1667</id>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2014-12-22T07:58:50+01:00</updated>
<published>2014-12-22T07:58:50+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6598#p6598</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6598#p6598"/>
<title type="html"><![CDATA[Re: [QUESTION] NDEF access via USB]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6598#p6598"><![CDATA[
Yes, you're entirely correct, the NDEF applet will always respond with the same OTP (until it's re-selected).<br />The main reason that the NDEF applet returns the same OTP is that it supports chunking by specifying an offset in p1 and p2.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Mon Dec 22, 2014 7:58 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[darco]]></name></author>
<updated>2014-12-19T22:56:34+01:00</updated>
<published>2014-12-19T22:56:34+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6591#p6591</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6591#p6591"/>
<title type="html"><![CDATA[Re: [QUESTION] NDEF access via USB]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6591#p6591"><![CDATA[
Too bad about not being able to disable NDEF support. That would be a desirable feature for a future version, by the way.<br /><br />I notice that multiple requests to read 0xE104 yield the same OTP. After which specific command is the OTP generated? Is it when I select 0xE104, or when I read it first?<br /><br />I also noticed that if I query the OTP directly from the YubicoOTP app (using APDU 00 02 00 00 00) that I can query for many new OTPs successfully for as long as my ykneo is laying on top of the NFC reader. Not really a problem as a reset will probably get similar behavior from the NDEF app... Just pointing it out to anyone who is reading and interested.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3288">darco</a> — Fri Dec 19, 2014 10:56 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2014-12-19T16:33:25+01:00</updated>
<published>2014-12-19T16:33:25+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6587#p6587</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6587#p6587"/>
<title type="html"><![CDATA[Re: [QUESTION] NDEF access via USB]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6587#p6587"><![CDATA[
As you've discovered, if the NDEF is read over a contact interface it requires the button to be touched.<br /><br />If you read it several times over NFC you'll get the same behaviour as if you touch the button several times in one session, the session counter is incremented for each OTP read.<br /><br />And to answer #2, no way to completely disable NDEF.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Fri Dec 19, 2014 4:33 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[darco]]></name></author>
<updated>2014-12-19T00:42:38+01:00</updated>
<published>2014-12-19T00:42:38+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6576#p6576</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6576#p6576"/>
<title type="html"><![CDATA[Re: [QUESTION] NDEF access via USB]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6576#p6576"><![CDATA[
Well, it seems I answered my first question:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">OpenSC &#91;3F00&#93;&gt; apdu 00 A4 04 00 07 D2 76 00 00 85 01 01 00<br />Sending: 00 A4 04 00 07 D2 76 00 00 85 01 01 00<br />Received (SW1=0x90, SW2=0x00)<br />Success!<br />OpenSC &#91;3F00&#93;&gt; apdu 00 A4 00 0C 02 E1 03<br />Sending: 00 A4 00 0C 02 E1 03<br />Received (SW1=0x90, SW2=0x00)<br />Success!<br />OpenSC &#91;3F00&#93;&gt; apdu 00 B0 00 00 0F<br />Sending: 00 B0 00 00 0F<br />Received (SW1=0x90, SW2=0x00):<br />00 0F 20 00 7F 00 7F 04 06 E1 04 00 7F 00 00 .. ......?.....<br />Success!<br />OpenSC &#91;3F00&#93;&gt; apdu 00 A4 00 0C 02 E1 04<br />Sending: 00 A4 00 0C 02 E1 04<br />Received (SW1=0x90, SW2=0x00)<br />Success!<br />OpenSC &#91;3F00&#93;&gt; apdu  00 B0 00 00 02<br />Sending: 00 B0 00 00 02<br />Received (SW1=0x69, SW2=0x83)<br />Failure: Authentication method blocked<br /></div><br /><br />It also fails to read the OTP when using the private yubico API (which is what I would expect):<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">OpenSC &#91;3F00&#93;&gt; apdu 00 a4 04 00 08 A0 00 00 05 27 20 01 01<br />Sending: 00 A4 04 00 08 A0 00 00 05 27 20 01 01<br />Received (SW1=0x90, SW2=0x00):<br />03 03 00 01 85 07 06 00 00 00 ..........<br />Success!<br />OpenSC &#91;3F00&#93;&gt; apdu 00 03 00 00 00<br />Sending: 00 03 00 00 00<br />Received (SW1=0x90, SW2=0x00):<br />03 03 00 01 85 07 ......<br />Success!<br />OpenSC &#91;3F00&#93;&gt; apdu 00 02 00 00 00<br />Sending: 00 02 00 00 00<br />Received (SW1=0x69, SW2=0x85)<br />Failure: Not allowed<br /></div><br /><br />So, unless I am interpreting these results incorrectly, it seems that you cannot read the OTP value from a slot without performing some sort of user action, either by pressing the button or by NFC NDEF. This is a good thing.<br /><br />I'm curious if it is possible to read the NDEF multiple times over NFC (without removing and replacing the ykneo), but the security impact of that would be considerably less significant.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3288">darco</a> — Fri Dec 19, 2014 12:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[darco]]></name></author>
<updated>2015-01-02T23:02:46+01:00</updated>
<published>2014-12-18T22:04:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6573#p6573</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6573#p6573"/>
<title type="html"><![CDATA[[ANSWERED] NDEF access via USB]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1667&amp;p=6573#p6573"><![CDATA[
Question 1: Is it possible for me to select the NDEF app and query it for its value from the USB interface?<br /><br />Question 2: Can the NDEF feature on the NEO be disabled?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3288">darco</a> — Thu Dec 18, 2014 10:04 pm</p><hr />
]]></content>
</entry>
</feed>